-
-
Notifications
You must be signed in to change notification settings - Fork 102
117 lines (101 loc) · 3 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
name: Tests
on: [push, pull_request]
jobs:
test-latest:
name: Test on Latest Stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Check
run: make check
- name: Test
run: make test
test-nightly:
name: Test on nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Check
run: make check
- name: Test
run: make test
## Bugs in older Rust versions for some of our borrowing logic for filters
## No longer makes supporting this Rust version possible
# build-old-stable:
# name: Build on 1.45.0
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: 1.45.0
# - name: Build
# run: cargo build --features=unstable_machinery,builtins,source,json,urlencode,debug,internal_debug
# working-directory: ./minijinja
# env:
# CARGO_NET_GIT_FETCH_WITH_CLI: "true"
# CARGO_HTTP_MULTIPLEXING: "false"
test-32bit:
name: Check on 1.61.0 (32bit)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.61.0
targets: armv5te-unknown-linux-gnueabi
- name: Check
run: cargo check --all-features -p minijinja --target armv5te-unknown-linux-gnueabi
test-fuel-feature:
name: Check on 1.61.0 (fuel feature)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.61.0
- name: Check
run: cargo check --no-default-features -p minijinja --features fuel
test-stable:
name: Test on 1.61.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.61.0
- name: Test
run: make test
test-wasi:
name: Test on WASI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-wasi
- name: Install WasmTime
run: |
curl https://wasmtime.dev/install.sh -sSf | bash
curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v4.0.0/wasmtime-v4.0.0-x86_64-linux.tar.xz
tar xvf wasmtime-v4.0.0-x86_64-linux.tar.xz
echo `pwd`/wasmtime-v4.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@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Test
run: make python-test