update file #300
Workflow file for this run
This file contains hidden or 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
name: CMake | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1.13.0 | |
with: | |
arch: x86 | |
- name: Get CMake | |
uses: lukka/get-cmake@v3.31.6 | |
- name: Cache CMake | |
uses: actions/cache@v4 | |
with: | |
path: bin | |
key: build-${{ github.run_id }} | |
restore-keys: | | |
build- | |
- name: Configure and build | |
run: | | |
if (!(Test-Path "bin")) { | |
mkdir bin | |
cmake -Bbin -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE . | |
} | |
cd bin | |
cmake --build . --config Release --target TrilogyChaosMod.SA -j 8 -- | |
- name: Prepare artifacts | |
run: | | |
cd bin | |
if (!(Test-Path "output_SA")) { mkdir output_SA } | |
cp TrilogyChaosMod.SA.asi output_SA/TrilogyChaosMod.SA.asi | |
# if (!(Test-Path "output_III")) { mkdir output_III } | |
# cp TrilogyChaosMod.III.asi output_III/TrilogyChaosMod.III.asi | |
# if (!(Test-Path "output_VC")) { mkdir output_VC } | |
# cp TrilogyChaosMod.VC.asi output_VC/TrilogyChaosMod.VC.asi | |
# - name: Upload III | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: "TrilogyChaosMod.III" | |
# path: bin/output_III | |
# - name: Upload VC | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: "TrilogyChaosMod.VC" | |
# path: bin/output_VC | |
- name: Upload SA | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "TrilogyChaosMod.SA" | |
path: bin/output_SA |