Skip to content

Commit ec3f491

Browse files
authored
Create rust.yml
1 parent 16fc430 commit ec3f491

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/rust.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check Out Repository
15+
uses: actions/checkout@v3
16+
17+
- name: Install QEMU
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y qemu-system-x86
21+
22+
- name: Setup Rust Nightly Toolchain
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: nightly
26+
override: true
27+
target: x86_64-unknown-none
28+
29+
- name: Add rust-src and llvm-tools-preview Components
30+
run: |
31+
rustup component add rust-src --toolchain nightly
32+
rustup component add llvm-tools-preview --toolchain nightly
33+
34+
- name: Install bootimage
35+
run: cargo install bootimage
36+
37+
- name: Build OS
38+
run: cargo build
39+
40+
- name: Run Unit Tests
41+
run: cargo test

0 commit comments

Comments
 (0)