From 6b0ea13783751deff0233ea74e4dbba88a802fa8 Mon Sep 17 00:00:00 2001 From: Satoshi Terasaki Date: Mon, 5 Aug 2024 13:27:42 +0900 Subject: [PATCH] Update CI workflow for Julia 1.10 and actions/cache v2 --- .github/workflows/CI.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 57d0223..ff928bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,13 +20,16 @@ concurrency: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created + actions: write + contents: write # ncipollo/release-action runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: version: - - '1.6' - - '1.9' + #- '1.6' + #- '1.9' - '1.10' os: - ubuntu-latest @@ -41,20 +44,11 @@ jobs: - name: Install dependencies for Python run: pip install matplotlib numpy==1.20.3 torch==1.9.1 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - name: upload result to release page