Skip to content

Modernize: Require Julia 1.10+, add Windows/Mac ARM to CI #138

Modernize: Require Julia 1.10+, add Windows/Mac ARM to CI

Modernize: Require Julia 1.10+, add Windows/Mac ARM to CI #138

Workflow file for this run

name: CI
on:
push:
branches:
- master
- main
paths:
- 'src/**'
- 'test/**'
- 'Project.toml'
pull_request:
paths:
- 'src/**'
- 'test/**'
- 'Project.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10' # New LTS (Minimum supported version)
- '1' # Latest Stable (e.g., 1.11, 1.12)
os:
- ubuntu-latest
- windows-latest
- macos-13 # Intel macOS
arch:
- x64
include:
# Test Apple Silicon on the latest Julia
- os: macos-14 # ARM macOS
arch: aarch64
version: '1'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- 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 }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GKSwstype: "100"
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false