Try self-hosted runner yet another time

This commit is contained in:
Siarhei Fedartsou 2024-06-29 19:08:18 +02:00
parent 46b399b89b
commit e7ad192932
2 changed files with 22 additions and 23 deletions

View File

@ -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:

View File

@ -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}')