-
Notifications
You must be signed in to change notification settings - Fork 55
108 lines (103 loc) · 3.01 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on:
pull_request:
push:
branches:
- master
tags: '*'
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 30
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - provider ${{ matrix.provider }} - ${{ matrix.threads }} thread(s)
runs-on: ${{ matrix.os }}
env:
JULIA_NUM_THREADS: ${{ matrix.threads }}
strategy:
fail-fast: false
matrix:
provider:
- 'fftw'
- 'mkl'
version:
- '1.6'
- '1'
- 'nightly'
os:
- ubuntu-latest
- windows-latest
- macOS-13 # intel
- macOS-latest # arm
threads:
- '1'
- '2'
arch:
- x64
- x86
- aarch64
exclude:
# 32-bit Julia binaries are not available on macOS
- os: macOS-latest
arch: x86
# 32-bit Linux binary for MKL isn't always available, let's ignore it
- os: ubuntu-latest
provider: 'mkl'
arch: x86
- provider: 'mkl'
threads: '2'
# Disable various OS-arch combinations that are not available
- os: ubuntu-latest
arch: aarch64
- os: windows-latest
arch: aarch64
- os: macOS-13
arch: x86
- os: macOS-13
arch: aarch64
- os: macOS-13
version: '1.6'
provider: 'mkl'
- os: macOS-latest
arch: x86
- os: macOS-latest
arch: x64
- os: macOS-latest
version: '1.6'
- os: macOS-latest
provider: 'mkl'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
# In MKL 2024, Intel dropped support for macOS.
# So, in CI, for the macOS jobs, we force MKL 2023 to be installed (instead of
# MKL 2024).
- run: julia .ci/macos_mkl_2023.jl
if: (matrix.os == 'macOS-13') && (matrix.provider == 'mkl')
- name: Set Preferences
run: julia --project .github/set_ci_preferences.jl "${{ matrix.provider }}"
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
file: lcov.info
Documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: 1
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@releases/v1
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}