-
Notifications
You must be signed in to change notification settings - Fork 49
119 lines (109 loc) · 3.71 KB
/
Test.yml
File metadata and controls
119 lines (109 loc) · 3.71 KB
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
109
110
111
112
113
114
115
116
117
118
119
name: Test
on:
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
binary_test:
name: Julia ${{ matrix.version }} ${{ matrix.llvm_args }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
version: ['1.10', '1.11', '1.12', '1.13-nightly', 'nightly']
os: ['ubuntu-latest', 'ubuntu-24.04-arm', 'macOS-latest', 'windows-latest']
llvm_args: ['']
include:
# on Julia 1.10 and 1.11, also test non-default opaque pointers
- version: '1.10'
os: 'ubuntu-latest'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'ubuntu-24.04-arm'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'macOS-latest'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'windows-latest'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'ubuntu-latest'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'ubuntu-24.04-arm'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'macOS-latest'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'windows-latest'
llvm_args: '--opaque-pointers'
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # build_ci.jl needs to be able to inspect the git log
# install Julia
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
# set-up packages
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
path-type: inherit
install: make mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake
if: runner.os == 'Windows'
- name: Build libLLVMExtra
run: julia --project=deps deps/build_ci.jl
if: runner.os != 'Windows'
- name: Build libLLVMExtra (in msys2)
shell: msys2 {0}
run: julia --project=deps deps/build_ci.jl
if: runner.os == 'Windows'
- name: Run tests
run: |
julia -e 'open("LocalPreferences.toml", "a") do io
println(io, "typecheck = \"true\"")
println(io, "memcheck = \"true\"")
end'
julia --project -e 'using Pkg; Pkg.test(; coverage=true)'
env:
JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # build_ci.jl needs to be able to inspect the git log
- uses: julia-actions/setup-julia@latest
with:
version: '1.12'
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- name: Build libLLVMExtra
run: julia --project=deps deps/build_ci.jl
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl