From 6208d05124767514443a673555781b2d064d5fc2 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Wed, 20 Nov 2019 13:56:02 +0100 Subject: [PATCH] Ensure the apt/cache folder exists while installing Sometimes it happens that the cache folder has not been restored from cache. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da41b079d4..c21ed3efb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,13 +47,17 @@ jobs: - name: Install Postgres headers if: matrix.database == 'postgresql' run: | + mkdir -p /home/runner/apt/cache sudo apt-get update -qq sudo apt-get install -qq --fix-missing libpq-dev -o dir::cache::archives="/home/runner/apt/cache" + sudo chown -R runner /home/runner/apt/cache - name: Install MySQL headers if: matrix.database == 'mysql' run: | + mkdir -p /home/runner/apt/cache sudo apt-get update -qq sudo apt-get install -qq --fix-missing libmysqlclient-dev -o dir::cache::archives="/home/runner/apt/cache" + sudo chown -R runner /home/runner/apt/cache - name: Install bundler run: | gem install bundler