|
|
@ -202,23 +202,18 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
|
|
- run: pip install clcache
|
|
|
|
run: pip install clcache
|
|
|
|
|
|
|
|
- run: pip install 'sphinx<4.4.0'
|
|
|
|
- run: pip install 'sphinx<4.4.0'
|
|
|
|
- name: Configure DFHack
|
|
|
|
- name: Configure DFHack
|
|
|
|
run: |
|
|
|
|
run: cmake -S . -B build -G "Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX=build/image -DCMAKE_C_COMPILER_LAUNCHER=clcache -DCMAKE_CXX_COMPILER_LAUNCHER=clcache -DBUILD_DOCS:BOOL=1 -DBUILD_STONESENSE:BOOL=1
|
|
|
|
cmake -S . -B build -G "Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX=build/image -DCMAKE_C_COMPILER_LAUNCHER=clcache -DCMAKE_CXX_COMPILER_LAUNCHER=clcache -DBUILD_DOCS:BOOL=1 -DBUILD_STONESENSE:BOOL=1
|
|
|
|
|
|
|
|
- name: Build DFHack
|
|
|
|
- name: Build DFHack
|
|
|
|
run: |
|
|
|
|
run: cmake --build build -j 2 --config Release --target install
|
|
|
|
cmake --build build -j 2 --config Release --target install
|
|
|
|
- uses: benjlevesque/short-sha@v2.2
|
|
|
|
- name: Format artifact name
|
|
|
|
id: short-sha
|
|
|
|
id: artifactname
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
echo name=$(date +%Y%m%d)-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: dfhack-win64-build-${{ steps.artifactname.outputs.name }}
|
|
|
|
name: dfhack-win64-build-${{ steps.short-sha.outputs.sha }}
|
|
|
|
path: build/image/*
|
|
|
|
path: build/image/*
|
|
|
|
|
|
|
|
|
|
|
|
build-cross-win64:
|
|
|
|
build-cross-win64:
|
|
|
|