Skip to content

Commit

Permalink
Update ci.yml for Mac aarch64 and use Julia-actions/cache to improve …
Browse files Browse the repository at this point in the history
…caching (#199)

* Update ci.yml for Mac aarch64

`macOS-latest` is now aarch64 - so separate out that build recipe in an include to make sure it picks the right architecture. Otherwise, it is just testing x64 in emulation on ARM.

macOS-13 is x64 (but I am not sure if it is native or not). We could probably drop that too, since Apple stopped shipping those a few years ago - but people do still have them.

* Run lesser CI

* Add 15 minute timeout
  • Loading branch information
ViralBShah authored Oct 16, 2024
1 parent 72c10a3 commit 7e7bc54
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,33 @@ jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
version:
- 'lts'
- '1.11'
- '1'
os:
- macOS-latest
- macOS-13 # with intel processors
- ubuntu-latest
arch:
- x64
include:
- os: macOS-latest
arch: aarch64
version: 1
- os: ubuntu-latest
arch: x64
version: 'lts'

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- uses: actions/cache@v4
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 }}-
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest


0 comments on commit 7e7bc54

Please sign in to comment.