Skip to content
name: CI (Julia nightly)
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
defaults:
run:
shell: bash
jobs:
test-julia-nightly:
name: Julia ${{ matrix.version }}/${{ matrix.threads }} threads/${{ matrix.os }}/${{ matrix.arch }}/${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch:
- x64
os:
- ubuntu-latest
- windows-latest
- macOS-latest
threads:
- '1'
- '3' # GitHub runners have 2 cores, so `NUM_CORES+1` is 3
version:
- 'nightly'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v3
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
with:
coverage: false
env:
JULIA_NUM_THREADS: ${{ matrix.threads }}