From ef32594cbc37792830d3522d8f7b54ce31dc5f00 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 27 Sep 2024 21:48:09 +0200 Subject: [PATCH] attempt --- .github/workflows/ci.yaml | 72 ++++++++++++++++++++++++--------------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c51f101..44e6f3c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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