Skip to content

dependency update and the overall reanimation #52

dependency update and the overall reanimation

dependency update and the overall reanimation #52

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
version:
- '1.10'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x86
- x64
exclude:
# Remove some configurations from the build matrix to reduce CI time.
# See https://github.com/marketplace/actions/setup-julia-environment
# MacOS not available on x86
- {os: 'macOS-latest', arch: 'x86'}
# Don't test on all versions
- {os: 'macOS-latest', version: '1.10'}
- {os: 'macOS-latest', version: 'nightly'}
- {os: 'windows-latest', version: '1.10'}
- {os: 'windows-latest', version: 'nightly'}
- {os: 'windows-latest', arch: 'x86'}
- {arch: 'x86', version: '1.10'}
- {arch: 'x86', version: 'nightly'}
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Install dependencies without precompilation
run: |
julia --compiled-modules=no -e '
import Pkg
Pkg.activate(".")
Pkg.instantiate(; verbose=true)
'
env:
JULIA_CUDA_USE_BINARYBUILDER: false
- name: Run tests with appropriate settings
run: |
if [[ "${{ matrix.version }}" == "1" || "${{ matrix.version }}" == "nightly" ]]; then
# Julia 1.11+ has CUDA precompilation issues, so disable compiled modules
julia --compiled-modules=no --color=yes --project -e 'import Pkg; Pkg.test(; coverage=false)'
else
# Julia 1.10 and earlier can use normal compiled modules
julia --color=yes --project -e 'import Pkg; Pkg.test(; coverage=false)'
fi
env:
DATADEPS_ALWAYS_ACCEPT: true
JULIA_CUDA_USE_BINARYBUILDER: false
shell: bash
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.11'
- run: julia --project=docs -e '
using Pkg;
Pkg.develop(PackageSpec(; path=pwd()));
Pkg.instantiate();'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}