mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
A few nits
create empty CMakeUserPresets.json file so build happens on first run comment doesn't apply anymore no need to specify the compiler when using msbuild@xxx ask ninja for the verbose command line when building
This commit is contained in:
committed by
majcosta
parent
d8728c9b92
commit
74f4979296
@@ -58,8 +58,8 @@ jobs:
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
cp -a CMakeUserPresets_VS2022.json CMakeUserPresets.json
|
||||
|
||||
touch CMakeUserPresets.json
|
||||
|
||||
JA2Language=$(echo '${{ inputs.language }}' | tr '[:lower:]' '[:upper:]')
|
||||
JA2Application=$(echo '${{ matrix.application }}' | tr '[:lower:]' '[:upper:]')
|
||||
|
||||
@@ -76,12 +76,10 @@ jobs:
|
||||
arch: x86
|
||||
- name: Prepare build
|
||||
run: |
|
||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" `
|
||||
-DLanguages="$Env:JA2Language" `
|
||||
-DApplications="$Env:JA2Application"
|
||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application"
|
||||
- name: Build
|
||||
run: |
|
||||
cmake --build build/
|
||||
cmake --build build/ -- -v
|
||||
- name: List build artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user