File tree Expand file tree Collapse file tree 1 file changed +30
-17
lines changed Expand file tree Collapse file tree 1 file changed +30
-17
lines changed Original file line number Diff line number Diff line change 1- name : CI
2-
3- on :
4- # push:
5- # branches:
6- # - main
7- workflow_dispatch :
8-
91jobs :
102 test :
113 runs-on : ubuntu-latest
124
135 steps :
14- - name : Check out the code
6+ - name : Check out your kernel repo
157 uses : actions/checkout@v2
8+
9+ - name : Clone Rust with patch
10+ run : |
11+ git clone https://github.com/rust-lang/rust.git rust-patched
12+ cd rust-patched
13+ git fetch origin pull/143075/head:pr-143075
14+ git checkout pr-143075
15+
16+ - name : Install dependencies for building Rust
17+ run : |
18+ sudo apt-get update
19+ sudo apt-get install -y build-essential curl python3 cmake ninja-build
20+
21+ - name : Build patched Rust compiler (stage 1)
22+ run : |
23+ cd rust-patched
24+ cp config.example.toml config.toml
25+ ./x.py build --stage 1
26+
27+ - name : Add patched rustc to PATH
28+ run : |
29+ echo "$(pwd)/rust-patched/build/x86_64-unknown-linux-gnu/stage1/bin" >> $GITHUB_PATH
30+
1631 - name : Install QEMU
1732 run : |
1833 sudo apt-get update
19- sudo apt-get install qemu-system-x86
20- - name : Set up Rust
21- uses : actions-rs/toolchain@v1
22- with :
23- toolchain : nightly
24- components : rust-src, llvm-tools-preview
34+ sudo apt-get install -y qemu-system-x86
35+
2536 - name : Install bootimage
2637 run : cargo install bootimage
27- - name : Install dependencies
38+
39+ - name : Build your project
2840 run : cargo build
41+
2942 - name : Run tests
30- run : cargo test
43+ run : cargo test
You can’t perform that action at this time.
0 commit comments