Try self-hosted runner yet another time

This commit is contained in:
Siarhei Fedartsou 2024-06-29 10:58:58 +02:00
parent f2bef20b19
commit e1a9c8d7d6

View File

@ -660,9 +660,9 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ~/.ccache path: ~/.ccache
key: v1-ccache-benchmarks-${{ github.sha }} key: v2-ccache-benchmarks-${{ github.sha }}
restore-keys: | restore-keys: |
v1-ccache-benchmarks- v2-ccache-benchmarks-
- name: Enable Conan cache - name: Enable Conan cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@ -678,13 +678,9 @@ jobs:
- name: Activate virtualenv - name: Activate virtualenv
run: | run: |
python3 -m venv .venv python3 -m venv .venv
. .venv/bin/activate source .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV echo PATH=$PATH >> $GITHUB_ENV
pip install "conan<2.0.0" "requests==2.31.0" "numpy==1.26.4" 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 - name: Prepare data
run: | run: |
if [ "$RUN_BIG_BENCHMARK" = "true" ]; then if [ "$RUN_BIG_BENCHMARK" = "true" ]; then
@ -730,7 +726,9 @@ jobs:
make -C test/data make -C test/data
# we run benchmarks in tmpfs to avoid impact of disk IO # we run benchmarks in tmpfs to avoid impact of disk IO
- name: Create folder for tmpfs - name: Create folder for tmpfs
run: mkdir -p ~/benchmarks run: |
rm -rf ~/benchmarks
mkdir -p ~/benchmarks
- name: Run PR Benchmarks - name: Run PR Benchmarks
run: | run: |
sudo mount -t tmpfs -o size=4g none ~/benchmarks sudo mount -t tmpfs -o size=4g none ~/benchmarks