Skip to content

Commit

Permalink
Update CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jan 23, 2025
1 parent d0d180f commit 66020f6
Showing 1 changed file with 49 additions and 38 deletions.
87 changes: 49 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,69 @@ on:
- master
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
name: Julia ${{ matrix.runner.version }} - ${{ matrix.runner.os }} - ${{ matrix.runner.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.runner.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.7'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
runner:
# Default
- version: '1'
os: ubuntu-latest
arch: x64
num_threads: 1
# x86
- version: '1'
os: ubuntu-latest
arch: x86
include:
num_threads: 1
# Multithreaded
- version: '1'
os: ubuntu-latest
arch: x64
num_threads: 2
# Windows
- version: '1'
os: windows-latest
arch: x64
num_threads: 1
# macOS
- version: '1'
os: macos-latest
arch: aarch64
num_threads: 1
# Minimum supported Julia version
- version: 'min'
os: ubuntu-latest
arch: x64
coverage: true
num_threads: 1
# Pre-release Julia version
- version: 'pre'
os: ubuntu-latest
arch: x64
num_threads: 1
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
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 }}-
version: ${{ matrix.runner.version }}
arch: ${{ matrix.runner.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: matrix.coverage
- uses: codecov/codecov-action@v1
if: matrix.coverage
- uses: codecov/codecov-action@v5
with:
file: lcov.info
- uses: coverallsapp/github-action@master
if: matrix.coverage
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info

0 comments on commit 66020f6

Please sign in to comment.