-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 999 Bytes
/
main.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
name: "test/build"
on:
- push
jobs:
configure:
runs-on: ubuntu-latest
outputs:
uid_gid: ${{ steps.get-user.outputs.uid_gid }}
steps:
- id: get-user
run: echo "::set-output name=uid_gid::$(id -u):$(id -g)"
checks:
runs-on: ubuntu-latest
container:
image: zondax/rust-ci:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri --version
- name: Test with Miri
env:
MIRIFLAGS: -Zmiri-symbolic-alignment-check
run: |
cargo +nightly miri test
- name: show versions
run: |
rustup show
- name: rustfmt
run: |
# cargo fmt --version
cargo fmt -- --check
- name: clippy
run: |
# cargo clippy --version
cargo clippy --all-targets