-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (42 loc) · 969 Bytes
/
check.yml
File metadata and controls
49 lines (42 loc) · 969 Bytes
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
name: check
on:
push:
branches: [main]
pull_request:
branches: ["**"]
merge_group:
types: [checks_requested]
jobs:
build:
strategy:
fail-fast: false
matrix:
channel: ["stable", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Select Rust channel
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.channel }}
- name: Update packages
run: |
sudo apt-get update -q
sudo apt-get install python3-pip python3-setuptools -y
pip3 install mako meson ninja
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
build_result:
name: Result
runs-on: ubuntu-latest
needs:
- "build"
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"