-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.29 KB
/
build.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
on: [push, pull_request]
name: Build
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
year: [2019, 2020, 2021]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: cargo check ${{ matrix.year }}
uses: actions-rs/cargo@v1
with:
command: check
# gh-actions 'working-directory' isn't implemented for this action
# https://github.com/actions-rs/cargo/issues/86#issuecomment-667088617
args: --all --manifest-path ./${{ matrix.year }}/Cargo.toml
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
year: [2019, 2020, 2021]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: cargo build ${{ matrix.year }}
uses: actions-rs/cargo@v1
with:
command: build
# gh-actions 'working-directory' isn't implemented for this action
# https://github.com/actions-rs/cargo/issues/86#issuecomment-667088617
args: --all --manifest-path ./${{ matrix.year }}/Cargo.toml