-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (55 loc) · 1.55 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- main
tags: '*' # Enable workflow for any tag pushes
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'docs/**'
pull_request:
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'docs/**'
workflow_dispatch:
# Cancel concurrent CI tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
# No binaries for Julia 1.10 - macOS-latest - x86
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Display Julia Version Info
run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- name: Cache Julia Packages
uses: julia-actions/cache@v2
- name: Build Julia Package
uses: julia-actions/julia-buildpkg@v1
# Note that only basic or placeholder tests can run on remote CI machines now
# CUDA tests requiring GPU setups must be run using JuliaGPU Buildkite
# TODO: Move tests to JuliaGPU Buildkite
- name: Test Julia Package
uses: julia-actions/julia-runtest@v1