Merge pull request #173 from JuliaGeodynamics/aelligp-patch-2 #834
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
tags: '*' | |
# Cancel redundant CI tests automatically | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_tests: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.9' | |
- '1.10' | |
- '1.11' | |
# - 'pre' | |
os: | |
- ubuntu-latest | |
- macos-13 | |
- windows-latest | |
arch: | |
- x64 | |
allow_failure: [false] | |
include: | |
- os: macOS-latest | |
arch: aarch64 | |
version: '1.10' | |
allow_failure: false | |
- os: macOS-latest | |
arch: aarch64 | |
version: '1.11' | |
allow_failure: false | |
- os: macOS-latest | |
arch: aarch64 | |
version: 'pre' | |
allow_failure: true | |
- os: ubuntu-latest | |
arch: x86 | |
version: 'pre' | |
allow_failure: true | |
- os: windows-latest | |
arch: x86 | |
version: 'pre' | |
allow_failure: true | |
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@latest | |
- uses: julia-actions/julia-runtest@latest | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false # or true if you want CI to fail when Codecov fails |