fix: guard division-by-zero in trader movement delay #1631
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 Mac | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| name: run on mac arm64 | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install OpenSSL (for curl) | |
| run: brew install openssl@3 | |
| - name: update-workspace | |
| run: | | |
| export CXXFLAGS=-stdlib=libc++ | |
| export OPENSSL_ROOT_DIR=$(brew --prefix openssl@3) | |
| cmake --preset macos-clang-relwithdebinfo-make-arm64 \ | |
| -DCMAKE_OSX_DEPLOYMENT_TARGET=11.7 \ | |
| -DOPTION_SYSTEM_LIBPNG=OFF \ | |
| -DOPTION_BUILD_LIBPNG=ON \ | |
| -DCMAKE_INSTALL_PREFIX="$PWD/build/install" | |
| - name: build | |
| run: | | |
| cmake --build --preset macos-clang-relwithdebinfo-make-arm64 -- -j$(sysctl -n hw.ncpu) | |
| - name: install-and-bundle | |
| run: | | |
| cmake --build --preset macos-clang-relwithdebinfo-make-arm64 --target install/local | |
| mkdir macos_build | |
| cp -R ./build/install/akhenaten.app ./macos_build/akhenaten.app | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: macos_arm_build | |
| path: macos_build |