From 4ae8fa79bdd46435fae00fd9d5c8315d3771a22f Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Tue, 16 Jan 2024 13:52:04 +0100 Subject: [PATCH 1/2] Cache pip dependencies in validate runs --- .github/workflows/pr-comment-validate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-comment-validate.yml b/.github/workflows/pr-comment-validate.yml index 9e2785ab9..12da64b8f 100644 --- a/.github/workflows/pr-comment-validate.yml +++ b/.github/workflows/pr-comment-validate.yml @@ -21,6 +21,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.version }} + cache: 'pip' - run: python -m pip install -r requirements.txt - run: python run_all_tests.py -a env: From 699279f96263cdad5a1692c43307368f10c888c0 Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Wed, 17 Jan 2024 15:32:57 +0100 Subject: [PATCH 2/2] Cache libsodium.dll on Windows validate runs --- .github/workflows/pr-comment-validate.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr-comment-validate.yml b/.github/workflows/pr-comment-validate.yml index 12da64b8f..f81092939 100644 --- a/.github/workflows/pr-comment-validate.yml +++ b/.github/workflows/pr-comment-validate.yml @@ -22,6 +22,12 @@ jobs: with: python-version: ${{ matrix.version }} cache: 'pip' + - uses: actions/cache/restore@v3 + if: matrix.os == 'windows-latest' + id: restore_cache + with: + path: libsodium.dll + key: cache_libsodium_dll - run: python -m pip install -r requirements.txt - run: python run_all_tests.py -a env: @@ -29,6 +35,12 @@ jobs: - run: python run_all_tests.py -a env: TEST_IPV8_WITH_IPV6: 1 + - uses: actions/cache/save@v3 + if: matrix.os == 'windows-latest' + id: save_cache + with: + path: libsodium.dll + key: cache_libsodium_dll set_pending_status: if: ${{github.event.issue.pull_request && startsWith(github.event.comment.body, 'validate') }}