diff options
author | Max Edwards <youwontforgetthis@gmail.com> | 2024-06-19 17:40:10 +0100 |
---|---|---|
committer | Max Edwards <youwontforgetthis@gmail.com> | 2024-06-20 17:42:28 +0100 |
commit | 4ecbbd9b7fa6f30e1d297cd26b112d3148744f58 (patch) | |
tree | cb48ab21563e9def39b21a0417a29b5340ceac3b /.github | |
parent | 2d21060af831fa8f8f1791b4464961d5f28a88cb (diff) | |
download | bitcoin-4ecbbd9b7fa6f30e1d297cd26b112d3148744f58.tar.xz |
ci: add option for running tests without volume
DANGER_CI_ON_HOST_CACHE_FOLDERS if set will mount caches in directories on the host rather than in docker volumes. Supports saving and restoring caches on Github Actions.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab314c47b6..54795332e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -313,6 +313,7 @@ jobs: timeout-minutes: 120 env: FILE_ENV: "./ci/test/00_setup_env_native_asan.sh" + DANGER_CI_ON_HOST_CACHE_FOLDERS: 1 steps: - name: Checkout uses: actions/checkout@v4 @@ -320,6 +321,9 @@ jobs: - name: Set Ccache directory run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV" + - name: Set base root directory + run: echo "BASE_ROOT_DIR=${RUNNER_TEMP}" >> "$GITHUB_ENV" + - name: Restore Ccache cache id: ccache-cache uses: actions/cache/restore@v4 |