-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 1.03 KB
/
test.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
name: Test rust
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy, llvm-tools-preview
- name: Install binutils
run: cargo install cargo-binutils
- name: Move config file
run: mv .cargo/config.toml .cargo/config2.toml
- name: Install required cargo-difftests helper binaries
run: cargo install --path cargo-difftests --bin rustc-wrapper-difftests --bin rustc-wrapper-difftests-workspace
- name: Move config file back
run: mv .cargo/config2.toml .cargo/config.toml
- name: Build
run: cargo build
- name: Test
run: cargo test