forked from Ncerzzk/RustPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 710 Bytes
/
rust.yml
File metadata and controls
32 lines (27 loc) · 710 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
name: BasicBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: update apt
run: sudo apt-get update
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: submodule
run: git submodule update --init
- name: Build
run: cargo build --verbose --target x86_64-unknown-linux-gnu
- name: Run tests
run: RUST_TEST_THREADS=1 cargo test --verbose --target x86_64-unknown-linux-gnu