-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.01 KB
/
build.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
name: Check and Build
on:
push:
branches:
- '**' # This means the workflow will run on any branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y nasm xorriso grub-pc-bin grub-common mtools qemu-system
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-x86_64-unknown-linux-gnu
profile: minimal
override: true
target: x86_64-unknown-none
components: rustfmt, clippy
- name: Cargo Rustfmt
run: cargo +nightly fmt --all --check
- name: Audit Check
uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Clippy Check
run: cargo clippy --all-features
- name: Build
run: make all
- name: Tests
run: |
make clean
TESTS=1 make all
bash test_runner.sh