-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (63 loc) · 1.93 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
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Julia ${{ matrix.version }} - Running ${{ matrix.test_julia }} ${{ matrix.test_buildflags }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version: ['1.10', '1.11']
os: ['ubuntu-latest']
arch: [x64]
test_julia: ['']
test_buildflags: ['']
include:
# special releases
- os: 'ubuntu-latest'
arch: 'x64'
version: '1.10'
test_julia: 'nightly'
- os: 'ubuntu-latest'
arch: 'x64'
version: '1.10'
test_julia: 'stable'
# directly from Git, likely built by CI
- os: 'ubuntu-latest'
arch: 'x64'
version: '1.10'
test_julia: 'master~10'
# directly from Git, force a build (see below)
- os: 'ubuntu-latest'
arch: 'x64'
version: '1.10'
test_julia: 'master'
test_buildflags: 'JULIA_CPU_TARGET=native JULIA_PRECOMPILE=0'
env:
JULIA_DEBUG: PkgEval
JULIA: ${{ matrix.test_julia }}
BUILDFLAGS: ${{ matrix.test_buildflags }}
steps:
- uses: actions/checkout@v4
- name: "Allow unprivileged user namespaces"
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
# install Julia
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
# set-up packages
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run tests
uses: julia-actions/julia-runtest@v1
env:
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}