-
Notifications
You must be signed in to change notification settings - Fork 53
86 lines (75 loc) · 2.01 KB
/
tests.yaml
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
name: Tests
on:
pull_request:
types: [ opened, reopened ]
push:
jobs:
test:
name: Test
env:
CARGO_TERM_COLOR: always
runs-on: ${{ matrix.os }}
strategy:
matrix:
build:
- msrv
- stable
- nightly
- macos
- win-msvc
# - win-gnu
- no-default-features
include:
- build: msrv
os: ubuntu-latest
rust: 1.67.1
args: ""
- build: stable
os: ubuntu-latest
rust: stable
args: ""
- build: nightly
os: ubuntu-latest
rust: nightly
args: ""
- build: macos
os: macos-latest
rust: stable
args: ""
- build: win-msvc
os: windows-latest
rust: stable
args: ""
# Tests for the `stable-x86_64-pc-windows-gnu` toolchain disabled
# due to https://github.com/VirusTotal/yara-x/issues/29
#
# - build: win-gnu
# os: windows-latest
# rust: stable-x86_64-gnu
# args: ""
- build: no-default-features
os: ubuntu-latest
rust: stable
args: "--package yara-x --no-default-features --features=test_proto2-module,test_proto3-module"
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Setup cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-targets ${{ matrix.args }}
env:
RUSTFLAGS: -Awarnings # Allow all warnings