fix: guard division-by-zero in trader movement delay #3462
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: Akhenaten Build Windows | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| windows: | |
| name: run on windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ilammy/msvc-dev-cmd@v1.12.1 | |
| - name: update-workspace | |
| shell: pwsh | |
| run: | | |
| mkdir bin_x64 | |
| mkdir bin_x64/data | |
| - name: build-project | |
| run: | | |
| cmake --preset win-relwithdebinfo | |
| cmake --build --preset win-relwithdebinfo --target akhenaten -j $env:NUMBER_OF_PROCESSORS | |
| copy ./build/RelWithDebInfo/akhenaten.exe ./bin_x64/akhenaten.exe | |
| copy ./build/RelWithDebInfo/akhenaten.pdb ./bin_x64/akhenaten.pdb | |
| copy ./data/pharaoh_fonts_pack.sgx ./bin_x64/data/pharaoh_fonts_pack.sgx | |
| copy ./data/pharaoh_custom_pack.sgx ./bin_x64/data/pharaoh_custom_pack.sgx | |
| copy ./data/pharaoh_houses_pack.sgx ./bin_x64/data/pharaoh_houses_pack.sgx | |
| copy ./data/neucha.ttf ./bin_x64/data/neucha.ttf | |
| - name: create-package | |
| shell: pwsh | |
| run: | | |
| Compress-Archive -Path bin_x64/* -Destination windows_build.zip | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: windows_build | |
| path: bin_x64 |