From 718a5beb853a2ee7d70954bf8fa30481026ddff0 Mon Sep 17 00:00:00 2001 From: Marcello Perathoner Date: Mon, 31 Mar 2025 20:48:12 +0200 Subject: [PATCH] Initial commit --- .github/workflows/osrm-backend.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index 4886771211b..14a311a8c23 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -57,7 +57,7 @@ jobs: cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON .. cmake --build . --config Release - + # TODO: MSVC goes out of memory when building our tests # - name: Run tests # shell: bash @@ -331,7 +331,7 @@ jobs: build_node_package: true continue-on-error: true node: 22 - runs-on: macos-15 # arm64 + runs-on: macos-15 # arm64 BUILD_TYPE: Release CCOMPILER: clang CXXCOMPILER: clang++ @@ -360,6 +360,7 @@ jobs: OSRM_CONNECTION_RETRIES: ${{ matrix.OSRM_CONNECTION_RETRIES }} OSRM_CONNECTION_EXP_BACKOFF_COEF: ${{ matrix.OSRM_CONNECTION_EXP_BACKOFF_COEF }} ENABLE_LTO: ${{ matrix.ENABLE_LTO }} + RUNS_ON: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v4 - name: Build machine architecture @@ -417,9 +418,10 @@ jobs: elif [[ "${RUNNER_OS}" == "macOS" ]]; then echo "JOBS=$((`sysctl -n hw.ncpu` + 1))" >> $GITHUB_ENV fi + echo "BOOST_PLATFORM_VERSION=$(echo ${RUNS_ON} | cut -d "-" -f2)" >> $GITHUB_ENV # See: https://github.com/actions/toolkit/issues/946#issuecomment-1590016041 # We need it to be able to access system folders while restoring cached Boost below - - name: Give tar root ownership + - name: Give tar root ownership if: runner.os == 'Linux' && matrix.ENABLE_CONAN != 'ON' run: sudo chown root /bin/tar && sudo chmod u+s /bin/tar @@ -429,7 +431,8 @@ jobs: id: install-boost with: boost_version: 1.85.0 - + platform_version: ${{ env.BOOST_PLATFORM_VERSION }} + - name: Install dev dependencies run: | # workaround for issue that GitHub Actions seems to not adding it to PATH after https://github.com/actions/runner-images/pull/6499