Skip to content

Commit

Permalink
attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Sep 27, 2024
1 parent 70bce79 commit 01a8fe2
Showing 1 changed file with 44 additions and 28 deletions.
72 changes: 44 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,55 @@
name: gMod CI Pipeline
name: gMod CI Pipeline

on:
pull_request:
branches:
- master
push:
branches:
- dev
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
workflow_dispatch:

jobs:
build:

strategy:
matrix:
targetplatform: [x86]

runs-on: windows-latest

build:
env:
Configuration: Release
Actions_Allow_Unsecure_Commands: true

strategy:
matrix:
targetplatform: [x86]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

runs-on: windows-latest
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

env:
Configuration: Release
Actions_Allow_Unsecure_Commands: true
- name: Cache DirectX SDK Installer
id: cache-directx
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/directx_Jun2010_redist.exe
key: directx-June2010-sdk

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download DirectX SDK if not cached
if: steps.cache-directx.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest -Uri https://download.microsoft.com/download/1/9/7/197F5C3F-AB0A-4A28-AEFF-89E25F41E5E0/directx_Jun2010_redist.exe -OutFile $env:RUNNER_TEMP\directx_Jun2010_redist.exe
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Install DirectX SDK
run: |
Start-Process -FilePath $env:RUNNER_TEMP\directx_Jun2010_redist.exe -ArgumentList "/Q /T:$env:RUNNER_TEMP\dxsdk" -Wait
Start-Process -FilePath "$env:RUNNER_TEMP\dxsdk\DXSETUP.exe" -ArgumentList "/silent" -Wait
- name: Build CMake Files
run: cmake -S . -B build -A Win32
- name: Build CMake Files
run: cmake -S . -B build -A Win32

- name: Build binaries
run: cmake --build build --config Release
- name: Build binaries
run: cmake --build build --config Release

0 comments on commit 01a8fe2

Please sign in to comment.