-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (51 loc) · 1.43 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
name: Test
on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'
- 'libnode/**'
pull_request:
branches: [ master ]
paths-ignore:
- '**/README.md'
- 'libnode/**'
env:
CARGO_TERM_COLOR: always
jobs:
test:
continue-on-error: true
strategy:
matrix:
target: [
x86_64-apple-darwin,
aarch64-apple-darwin,
x86_64-unknown-linux-gnu,
x86_64-pc-windows-msvc,
i686-pc-windows-msvc
]
features: [ "", "full-icu" ]
include:
- target: x86_64-apple-darwin
os: macos-10.15
- target: aarch64-apple-darwin
os: macos-11
cargo_test_args: "--no-run"
- target: x86_64-unknown-linux-gnu
os: ubuntu-18.04
- target: x86_64-pc-windows-msvc
os: windows-2019
- target: i686-pc-windows-msvc
os: windows-2019
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Run tests
env:
RS_NODEJS_CARGO_FEATURES: ${{ matrix.features }}
RS_NODEJS_CARGO_TARGET: ${{ matrix.target }}
RS_NODEJS_CARGO_TEST_ARGS: ${{ matrix.cargo_test_args }}
shell: bash
run: |
rustup target add $RS_NODEJS_CARGO_TARGET
cargo test --verbose --release $RS_NODEJS_CARGO_TEST_ARGS --target $RS_NODEJS_CARGO_TARGET --features "$RS_NODEJS_CARGO_FEATURES"