From 7f76c96f0fcf1bb75302beb26b24336d10156b67 Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Mon, 11 Mar 2024 22:50:00 +0800 Subject: [PATCH] Revert "julia depot path" This reverts commit 7b6303f31cf6b5709373b9418631188c7117cafa. --- .github/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aa10364..f23f8872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,12 @@ concurrency: cancel-in-progress: true env: - NPROC: '3' # Number of Julia processes to run the notebooks - CACHE_NUM: '1' + NPROC: '2' # Number of Julia processes to run the notebooks + CACHE_NUM: '2' JULIA_CONDAPKG_BACKEND: 'Null' JULIA_CI: 'true' JULIA_NUM_THREADS: '2' - JULIA_DEPOT_PATH: '/tmp/juliapkgs' - # JULIA_CPU_TARGET: 'generic;znver3' + JULIA_CPU_TARGET: 'generic;znver3' jobs: CI: @@ -56,9 +55,9 @@ jobs: id: cache-julia with: path: | - ${{ env.JULIA_DEPOT_PATH }} - !${{ env.JULIA_DEPOT_PATH }}/registries - key: ${{ runner.os }}-julia-${{ env.CACHE_NUM }}-${{ hashFiles('src/**', 'Project.toml', 'Manifest.toml')}} + ~/.julia + !~/.julia/registries + key: ${{ runner.os }}-julia-${{ env.CACHE_NUM }}-${{ hashFiles('src/**', 'Project.toml', 'Manifest.toml' )}} restore-keys: | ${{ runner.os }}-julia-${{ env.CACHE_NUM }}- - name: Install Julia packages @@ -71,8 +70,8 @@ jobs: if: ${{ steps.cache-julia.outputs.cache-hit != 'true' }} with: path: | - ${{ env.JULIA_DEPOT_PATH }} - !${{ env.JULIA_DEPOT_PATH }}/registries + ~/.julia + !~/.julia/registries key: ${{ steps.cache-julia.outputs.cache-primary-key }} - name: Cache literate notebooks uses: actions/cache@v4