-
Notifications
You must be signed in to change notification settings - Fork 10
79 lines (71 loc) · 2.15 KB
/
build-and-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
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
on: [push, pull_request]
name: Build and Test
jobs:
# This is a hack so we don't have to gate PRs on each element of the build matrix.
build-and-test-succeeded:
name: Build and Test Succeeded
needs: build-and-test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
build-and-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
channel: 1.63
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
channel: stable
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
channel: beta
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
channel: nightly
- os: macos-13
target: x86_64-apple-darwin
channel: 1.63
- os: macos-13
target: x86_64-apple-darwin
channel: stable
- os: windows-2019
target: x86_64-pc-windows-msvc
channel: 1.63
- os: windows-2019
target: x86_64-pc-windows-msvc
channel: stable
- os: windows-2019
target: i686-pc-windows-msvc
channel: 1.63
- os: windows-2019
target: i686-pc-windows-msvc
channel: stable
- os: windows-2019
target: i686-pc-windows-msvc
channel: beta
- os: windows-2019
target: i686-pc-windows-msvc
channel: nightly
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
default: true
toolchain: ${{ matrix.channel }}-${{ matrix.target }}
- name: Build and Test (Debug)
uses: actions-rs/cargo@v1
with:
command: test
args: --all --target ${{ matrix.target }}
- name: Build and Test (Release)
uses: actions-rs/cargo@v1
with:
command: test
args: --release --all --target ${{ matrix.target }}