From e7ad1929329221bf9934c0c8f35130cbf0554c0f Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 29 Jun 2024 19:08:18 +0200 Subject: [PATCH] Try self-hosted runner yet another time --- .github/workflows/osrm-backend.yml | 44 +++++++++++++++--------------- scripts/ci/run_benchmarks.sh | 1 - 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index 5a6b5bf3a..135851d05 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -648,28 +648,28 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} RUN_BIG_BENCHMARK: ${{ contains(github.event.pull_request.labels.*.name, 'Performance') }} steps: - - name: Enable data.osm.pbf cache - if: ${{ ! env.RUN_BIG_BENCHMARK }} - uses: actions/cache@v4 - with: - path: ~/data.osm.pbf - key: v1-data-osm-pbf - restore-keys: | - v1-data-osm-pbf - - name: Enable compiler cache - uses: actions/cache@v4 - with: - path: ~/.ccache - key: v2-ccache-benchmarks-${{ github.sha }} - restore-keys: | - v2-ccache-benchmarks- - - name: Enable Conan cache - uses: actions/cache@v4 - with: - path: ~/.conan - key: v1-conan-benchmarks-${{ github.sha }} - restore-keys: | - v1-conan-benchmarks- + # - name: Enable data.osm.pbf cache + # if: ${{ ! env.RUN_BIG_BENCHMARK }} + # uses: actions/cache@v4 + # with: + # path: ~/data.osm.pbf + # key: v1-data-osm-pbf + # restore-keys: | + # v1-data-osm-pbf + # - name: Enable compiler cache + # uses: actions/cache@v4 + # with: + # path: ~/.ccache + # key: v2-ccache-benchmarks-${{ github.sha }} + # restore-keys: | + # v2-ccache-benchmarks- + # - name: Enable Conan cache + # uses: actions/cache@v4 + # with: + # path: ~/.conan + # key: v1-conan-benchmarks-${{ github.sha }} + # restore-keys: | + # v1-conan-benchmarks- - name: Checkout PR Branch uses: actions/checkout@v4 with: diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 103bb829e..0d0324d13 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -40,7 +40,6 @@ function measure_peak_ram_and_time { # on macOS time has different parameters, so simply run command on macOS $COMMAND > /dev/null 2>&1 else - OUTPUT=$(/usr/bin/time -f "%e %M" $COMMAND 2>&1 | tail -n 1) TIME=$(echo $OUTPUT | awk '{print $1}')