Skip to content

Commit

Permalink
Update CI workflow for Julia 1.10 and actions/cache v2
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Aug 5, 2024
1 parent e3afa6b commit 6b0ea13
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6b0ea13

Please sign in to comment.