From 8acc772bb932121ff310fd86f573ef362980f415 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Tue, 13 Aug 2024 17:02:16 +0200 Subject: [PATCH] test cache --- .github/workflows/build_and_test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 6f8b005b..efaf37bb 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -53,9 +53,27 @@ jobs: echo "login ${{ secrets.NEXUS_USERNAME }}" >> ~/.netrc echo "password ${{ secrets.NEXUS_PASSWORD }}" >> ~/.netrc + - name: Restore packages artifacts + uses: actions/cache/restore@v4 + id: artifacts-cache + with: + key: ${{ runner.os }}-packages-${{ hashFiles('**/artifacts.json') }} + path: | + **/*.jar + **/*.zip + - name: Fetch artifacts from nexus run: ./scripts/fetch-artifact.sh + - name: Save packages artifacts + id: cache-primes-save + uses: actions/cache/save@v4 + with: + path: | + **/*.jar + **/*.zip + key: ${{ steps.artifacts-cache.outputs.cache-primary-key }} + - name: Set up QEMU uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0