From e1a9c8d7d6cdb9accde43f41e480a40f003c09c9 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 29 Jun 2024 10:58:58 +0200 Subject: [PATCH] Try self-hosted runner yet another time --- .github/workflows/osrm-backend.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index a97e0a95e..9311db327 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -660,9 +660,9 @@ jobs: uses: actions/cache@v4 with: path: ~/.ccache - key: v1-ccache-benchmarks-${{ github.sha }} + key: v2-ccache-benchmarks-${{ github.sha }} restore-keys: | - v1-ccache-benchmarks- + v2-ccache-benchmarks- - name: Enable Conan cache uses: actions/cache@v4 with: @@ -678,13 +678,9 @@ jobs: - name: Activate virtualenv run: | python3 -m venv .venv - . .venv/bin/activate + source .venv/bin/activate echo PATH=$PATH >> $GITHUB_ENV pip install "conan<2.0.0" "requests==2.31.0" "numpy==1.26.4" - #- name: Install dependencies - # run: | - # python3 -m pip install "conan<2.0.0" "requests==2.31.0" "numpy==1.26.4" - # sudo apt-get update -y && sudo apt-get install ccache - name: Prepare data run: | if [ "$RUN_BIG_BENCHMARK" = "true" ]; then @@ -730,7 +726,9 @@ jobs: make -C test/data # we run benchmarks in tmpfs to avoid impact of disk IO - name: Create folder for tmpfs - run: mkdir -p ~/benchmarks + run: | + rm -rf ~/benchmarks + mkdir -p ~/benchmarks - name: Run PR Benchmarks run: | sudo mount -t tmpfs -o size=4g none ~/benchmarks