-
-
Notifications
You must be signed in to change notification settings - Fork 102
163 lines (142 loc) · 4.03 KB
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
test-latest:
name: Test on Latest Stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: make check
- name: Test
run: make test
test-nightly:
name: Test on nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- uses: Swatinem/rust-cache@v2
- name: Wipe Cargo.lock
run: rm Cargo.lock
- name: Check
run: make check
- name: Test
run: make test
test-32bit:
name: Check on 1.63.0 (32bit)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.63.0
targets: armv5te-unknown-linux-gnueabi
- uses: Swatinem/rust-cache@v2
- name: Install Cross Deps
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y gcc-arm-linux-gnueabi libc6-dev-armel-cross
- name: Restore Cargo.lock
run: cp Cargo.lock.msrv Cargo.lock
- name: Check
run: cargo check --all-features -p minijinja --target armv5te-unknown-linux-gnueabi
test-fuel-feature:
name: Check on 1.63.0 (fuel feature)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.63.0
- uses: Swatinem/rust-cache@v2
- name: Restore Cargo.lock
run: cp Cargo.lock.msrv Cargo.lock
- name: Check
run: cargo check --no-default-features -p minijinja --features fuel
test-stable:
name: Test on 1.63.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.63.0
- uses: Swatinem/rust-cache@v2
- name: Restore Cargo.lock
run: cp Cargo.lock.msrv Cargo.lock
- name: Test
run: make test-msrv
test-no-lock:
name: Test on Latest (No Lock)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Remove Cargo.lock
run: rm Cargo.lock
- name: Test
run: make test
test-wasi:
name: Test on WASI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-wasi
- uses: Swatinem/rust-cache@v2
- name: Install WasmTime
run: |
curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.0/wasmtime-v13.0.0-x86_64-linux.tar.xz
tar xvf wasmtime-v13.0.0-x86_64-linux.tar.xz
echo `pwd`/wasmtime-v13.0.0-x86_64-linux >> $GITHUB_PATH
- name: Test
run: make wasi-test
test-python:
name: Test on Python binding
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: make python-test
test-cli-linux:
name: Test CLI Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: make check-cli
- name: Test
run: make test-cli
test-cli-windows:
name: Test CLI Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check
run: make check-cli
- name: Test
run: make test-cli