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 ef32594
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/setup-msbuild@v1.3.1

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

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/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.3.1
- name: Install DirectX SDK
run: |
Start-Process -FilePath $env:RUNNER_TEMP\DXSDK_Jun10.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 ef32594

Please sign in to comment.