Repository navigation
fix(monsters): run onSpawn after placement #1412
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: Build with vcpkg | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - v* | |
| paths: | |
| - .github/workflows/build-vcpkg.yml | |
| - cmake/** | |
| - src/** | |
| - atlas.rc | |
| - atlas.ico | |
| - CMakeLists.txt | |
| - CMakePresets.json | |
| - vcpkg.json | |
| pull_request: | |
| paths: | |
| - .github/workflows/build-vcpkg.yml | |
| - cmake/** | |
| - src/** | |
| - atlas.rc | |
| - atlas.ico | |
| - CMakeLists.txt | |
| - CMakePresets.json | |
| - vcpkg.json | |
| jobs: | |
| build-linux: | |
| name: Linux | |
| runs-on: ubuntu-latest | |
| env: | |
| CXX: g++-14 | |
| VCPKG_BUILD_TYPE: release | |
| VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed/x64-linux | |
| VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg_cache | |
| VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Create vcpkg binary cache directory | |
| run: mkdir -p "${{ github.workspace }}/vcpkg_cache" | |
| shell: bash | |
| - name: Get latest CMake | |
| uses: lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # v4.3.3 | |
| - name: Cache vcpkg binary packages | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_cache | |
| key: vcpkg-linux-${{ hashFiles('vcpkg.json', 'CMakeLists.txt', '**/CMakeLists.txt', 'CMakePresets.json') }} | |
| restore-keys: | | |
| vcpkg-linux- | |
| - name: CCache | |
| uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | |
| with: | |
| key: ${{ runner.os }}-ccache-${{ hashFiles('src/**', 'CMakeLists.txt', 'vcpkg.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-ccache- | |
| - name: Run vcpkg | |
| uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6 | |
| - name: Build with CMake | |
| uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | |
| with: | |
| configurePreset: linux-release | |
| configurePresetAdditionalArgs: "['-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| buildPreset: linux-release | |
| - name: Upload build logs | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: logs-linux-${{ github.sha }} | |
| path: ${{ github.workspace }}/vcpkg/buildtrees/**/*.log | |
| if: ${{ failure() }} | |
| - name: Upload artifact binary | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: tfs-linux-${{ github.sha }} | |
| path: ${{ github.workspace }}/build/linux-release/tfs | |
| build-windows: | |
| name: Windows | |
| runs-on: windows-latest | |
| env: | |
| VCPKG_BUILD_TYPE: release | |
| VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed/x64-windows-static-release | |
| VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg_cache | |
| VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Create vcpkg binary cache directory | |
| run: mkdir -p "${{ github.workspace }}/vcpkg_cache" | |
| shell: bash | |
| - name: Get latest CMake | |
| uses: lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # v4.3.3 | |
| - name: CCache | |
| uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | |
| with: | |
| key: windows-ccache-${{ hashFiles('src/**', 'CMakeLists.txt', 'vcpkg.json') }} | |
| restore-keys: | | |
| windows-ccache- | |
| - name: Cache vcpkg binary packages | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_cache | |
| key: vcpkg-windows-${{ hashFiles('vcpkg.json', 'CMakeLists.txt', '**/CMakeLists.txt', 'CMakePresets.json') }} | |
| restore-keys: | | |
| vcpkg-windows- | |
| - name: Run vcpkg | |
| uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6 | |
| - name: Build with CMake | |
| uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | |
| with: | |
| configurePreset: windows-release | |
| configurePresetAdditionalArgs: "['-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| buildPreset: windows-release | |
| - name: Upload build logs | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: logs-windows-${{ github.sha }} | |
| path: ${{ github.workspace }}/vcpkg/buildtrees/**/*.log | |
| if: ${{ failure() }} | |
| - name: Upload artifact binary | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: tfs-windows-${{ github.sha }} | |
| path: | | |
| ${{ github.workspace }}/build/windows-release/tfs.exe | |
| ${{ github.workspace }}/build/windows-release/*.dll |