Enhance ball friction handling and update macOS CI/CD configuration #91
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build-linux: | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04 ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: "Update dependencies" | |
| run: sudo apt-get update | |
| - name: "Install dependencies" | |
| run: sudo apt-get install -y build-essential cmake pkg-config qtbase5-dev libqt5opengl5-dev libgl1-mesa-dev libglu1-mesa-dev libprotobuf-dev protobuf-compiler libode-dev libboost-dev | |
| - name: "Build" | |
| run: make | |
| build-macos: | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ macos-14, macos-15 ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: "Install dependencies" | |
| run: brew tap robotology/formulae && brew install cmake pkg-config qt@5 | |
| - name: "Build" | |
| run: | | |
| export PATH="/opt/homebrew/opt/qt@5/bin:$PATH" | |
| export LDFLAGS="-L/opt/homebrew/opt/qt@5/lib" | |
| export CPPFLAGS="-I/opt/homebrew/opt/qt@5/include" | |
| export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig" | |
| export CMAKE_PREFIX_PATH="/opt/homebrew/opt/qt@5" | |
| make | |
| # Windows build does not work currently, see https://github.com/RoboCup-SSL/grSim/issues/183 | |
| # build-windows: | |
| # runs-on: windows-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # | |
| # - name: Install dependencies # saves / restores cache to avoid rebuilding dependencies | |
| # uses: lukka/run-vcpkg@v11 | |
| # with: | |
| # vcpkgGitCommitId: 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50 | |
| # vcpkgDirectory: c:/vcpkg # folder must reside in c:\ otherwise qt wont install due to long path errors | |
| # | |
| # - name: Run CMake and run vcpkg to build packages | |
| # uses: lukka/run-cmake@v10 | |
| # with: | |
| # # this preset is needed to actually install the vcpkg dependencies | |
| # configurePreset: "ninja-multi-vcpkg" | |
| # configPresetAdditionalArgs: "[-DVCPKG_TARGET_TRIPLET=x64-windows]" | |
| # buildPreset: "ninja-multi-vcpkg" | |
| # buildPresetAdditionalArgs: "['--config Release']" | |
| # env: | |
| # # [OPTIONAL] Define the vcpkg's triplet you want to enforce, otherwise the default one | |
| # # for the hosting system will be automatically choosen (x64 is the default on all | |
| # # platforms, e.g. `x64-osx`). | |
| # VCPKG_DEFAULT_TRIPLET: "x64-windows" |