-
Notifications
You must be signed in to change notification settings - Fork 86
223 lines (218 loc) · 7.84 KB
/
test.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.ref_name || github.run_id }}
cancel-in-progress: true
jobs:
check-juliaup:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
label: [
x86_64-pc-windows-msvc-windowsstore,
x86_64-pc-windows-msvc-windowsappinstaller,
x86_64-pc-windows-gnu-msi,
x86_64-pc-windows-gnu-msi,
x86_64-apple-darwin,
x86_64-unknown-linux-gnu,
x86_64-unknown-linux-musl,
x86_64-unknown-freebsd,
i686-pc-windows-msvc-windowsstore,
i686-pc-windows-msvc-windowsappinstaller,
i686-pc-windows-gnu-msi,
i686-unknown-linux-gnu,
i686-unknown-linux-musl,
aarch64-unknown-linux-gnu,
aarch64-unknown-linux-musl,
aarch64-apple-darwin
]
include:
- label: x86_64-pc-windows-msvc-windowsstore
target: x86_64-pc-windows-msvc
os: windows
features: windowsstore,binjuliainstaller,binjulialauncher
rustflags:
- label: x86_64-pc-windows-msvc-windowsappinstaller
target: x86_64-pc-windows-msvc
os: windows
features: windowsappinstaller,binjuliainstaller,binjulialauncher
rustflags:
- label: x86_64-pc-windows-gnu-msi
target: x86_64-pc-windows-gnu
os: windows
features: windowsappinstaller,binjuliainstaller,binjulialauncher
rustflags:
- label: i686-pc-windows-gnu-msi
target: i686-pc-windows-gnu
os: windows
features: windowsappinstaller,binjuliainstaller,binjulialauncher
rustflags:
- label: x86_64-apple-darwin
target: x86_64-apple-darwin
os: macos
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
- label: x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
- label: x86_64-unknown-linux-musl
target: x86_64-unknown-linux-musl
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags: -C target-feature=+crt-static
- label: x86_64-unknown-freebsd
target: x86_64-unknown-freebsd
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
- label: i686-pc-windows-msvc-windowsstore
target: i686-pc-windows-msvc
os: windows
features: windowsstore,binjuliainstaller,binjulialauncher
rustflags:
- label: i686-pc-windows-msvc-windowsappinstaller
target: i686-pc-windows-msvc
os: windows
features: windowsappinstaller,binjuliainstaller,binjulialauncher
rustflags:
- label: i686-unknown-linux-gnu
target: i686-unknown-linux-gnu
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
- label: i686-unknown-linux-musl
target: i686-unknown-linux-musl
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags: -C target-feature=+crt-static
- label: aarch64-unknown-linux-gnu
target: aarch64-unknown-linux-gnu
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
- label: aarch64-unknown-linux-musl
target: aarch64-unknown-linux-musl
os: ubuntu
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags: -C target-feature=+crt-static
- label: aarch64-apple-darwin
target: aarch64-apple-darwin
os: macos
features: selfupdate,binjuliainstaller,binjulialauncher
rustflags:
steps:
- uses: actions/checkout@v4
- if: ${{ contains(matrix.target, '-musl') }}
run: sudo apt-get install musl-tools
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: ${{matrix.target}}
- name: Check build
uses: clechasseur/rs-cargo@v2
with:
command: check
use-cross: ${{ matrix.os == 'ubuntu' }}
args: --release --bins --target ${{matrix.target}} --features ${{matrix.features}}
env:
CARGO_TARGET_x86_64-unknown-linux-musl: ${{matrix.rustflags}}
CARGO_TARGET_i686-unknown-linux-musl: ${{matrix.rustflags}}
CARGO_TARGET_aarch64-unknown-linux-musl: ${{matrix.rustflags}}
test-juliaup:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
target: [
x86_64-pc-windows-msvc,
x86_64-pc-windows-gnu,
x86_64-apple-darwin,
x86_64-unknown-linux-gnu,
x86_64-unknown-linux-musl,
x86_64-unknown-freebsd,
i686-pc-windows-msvc,
i686-pc-windows-gnu,
]
include:
- target: x86_64-pc-windows-msvc
os: windows
features: dummy,binjulialauncher
rustflags:
toolchain: stable
- target: x86_64-pc-windows-gnu
os: windows
features: dummy,binjulialauncher
rustflags:
toolchain: stable-gnu
- target: x86_64-apple-darwin
os: macos
features: dummy,binjulialauncher
rustflags:
toolchain: stable
- target: x86_64-unknown-linux-gnu
os: ubuntu
features: dummy,binjulialauncher
rustflags:
toolchain: stable
- target: x86_64-unknown-linux-musl
os: ubuntu
features: dummy,binjulialauncher
rustflags: -C target-feature=+crt-static
toolchain: stable
- target: x86_64-unknown-freebsd
os: ubuntu
features: dummy,binjulialauncher
rustflags:
toolchain: stable
- target: i686-pc-windows-msvc
os: windows
features: dummy,binjulialauncher
rustflags:
toolchain: stable
- target: i686-pc-windows-gnu
os: windows
features: dummy,binjulialauncher
rustflags:
toolchain: stable-i686-gnu
steps:
- uses: actions/checkout@v4
- if: ${{ contains(matrix.target, '-musl') }}
run: sudo apt-get install musl-tools
- uses: egor-tensin/setup-mingw@v2
if: ${{ contains(matrix.toolchain, 'stable-i686-gnu') }}
with:
platform: x86
version: 12.2.0
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: ${{ ! contains(matrix.target, 'freebsd') }}
with:
toolchain: ${{matrix.toolchain}}
target: ${{matrix.target}}
- name: Test
if: ${{ ! contains(matrix.target, 'freebsd') }}
run: cargo test --target ${{matrix.target}} --features ${{matrix.features}}
env:
CARGO_TARGET_x86_64-unknown-linux-musl: ${{matrix.rustflags}}
CARGO_TARGET_i686-unknown-linux-musl: ${{matrix.rustflags}}
CARGO_TARGET_aarch64-unknown-linux-musl: ${{matrix.rustflags}}
- name: Test FreeBSD
if: ${{ contains(matrix.target, 'freebsd') }}
uses: vmactions/freebsd-vm@v1
with:
release: "13.2"
usesh: true
mem: 8192
copyback: false
prepare: |
pkg install -y curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${{matrix.toolchain}}
run: |
. "${HOME}/.cargo/env"
export RUST_BACKTRACE=full
cargo test --target ${{matrix.target}} --features ${{matrix.features}}