Skip to content

Commit

Permalink
ci: Update ci config (#115)
Browse files Browse the repository at this point in the history
* ci: test with lts version

* ci: add macos-aarch64

* ci: add julia-actions/cache

* ci: remove unused arg in julia-actions/julia-processcoverage

* ci: add token for codecov/codecov-action

* ci: add permissions need by julia-actions/cache
  • Loading branch information
inkydragon authored Dec 14, 2024
1 parent aba9014 commit 346b359
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions:
# needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
Expand All @@ -28,27 +32,34 @@ jobs:
- 'x64'
- 'x86'
julia-version:
- '1.6'
- 'lts'
- 'nightly'
exclude:
- os: macos-13 # Intel
julia-arch: x86
include:
- os: macos-latest # Apple Silicon
julia-arch: 'aarch64'
julia-version: 'lts'
- os: macos-latest # Apple Silicon
julia-arch: 'aarch64'
julia-version: 'nightly'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v2
# Alter the UUID so that we test this package instead of loading
# the version that is already built into a Julia's system image.
- run: julia --color=yes .ci/test_and_change_uuid.jl
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
env:
JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
doctests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 346b359

Please sign in to comment.