-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.02 KB
/
ci.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
name: CI
on:
- push
- pull_request
jobs:
build:
name: ${{ matrix.os }} (${{ matrix.rust }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- 1.74.0
- stable
# https://github.com/actions/virtual-environments#available-images
os:
- macOS-12
- macOS-13
- macOS-13-arm64
- ubuntu-20.04
- ubuntu-22.04
- windows-2019
- windows-2022
steps:
- uses: actions/checkout@v3
- name: Install ${{ matrix.rust }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Build (with no features)
run: cargo build --no-default-features
- name: Build
run: cargo build
- name: Build (with "json" feature)
run: cargo build --features json
security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}