From e7db2684a503c2e862fdaae93d29685d3d0f6b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Martins=20Filho?= Date: Fri, 6 Dec 2024 16:24:05 -0300 Subject: [PATCH] add caches in actions --- .github/workflows/unit_tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index b0f5f9a..1aaff3f 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -21,6 +21,22 @@ jobs: with: version: '1.11' + - name: Cache Julia artifacts + uses: actions/cache@v3 + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-julia-artifacts-${{ hashFiles('**/Manifest.toml') }} + restore-keys: | + ${{ runner.os }}-julia-artifacts- + + - name: Cache Julia compiled modules + uses: actions/cache@v3 + with: + path: ~/.julia/compiled + key: ${{ runner.os }}-julia-compiled-${{ hashFiles('**/Manifest.toml') }} + restore-keys: | + ${{ runner.os }}-julia-compiled- + - name: Install dependencies run: | julia --project=. -e '