-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70bce79
commit 01a8fe2
Showing
1 changed file
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |