Skip to content

Commit 7bd9153

Browse files
authored
chore(ci): actually build a kernel image on nightlies (#336)
Currently, the "latest nightly" CI cronjob only runs clippy checks. This doesn't catch issues where nightly breaks actually compiling the kernel image. This branch updates the nightly CI workflow to actually build a bootable mycelium image, so that we can catch issues like rust-osdev/bootloader#271 earlier, instead of having to wait until I manually try to update nightly.
1 parent 6a0c2c6 commit 7bd9153

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,25 @@ jobs:
3434
# file. this job checks to see if we can build mycelium on whatever the most
3535
# recent nightly is. if this fails, there are breaking changes we need to
3636
# address before updating to a newer nightly build.
37+
kernel-x86_64-nightly:
38+
name: build x86_64 boot image (latest nightly)
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: install rust toolchain
42+
uses: actions-rs/[email protected]
43+
with:
44+
profile: minimal
45+
# needed to build the kernel
46+
components: rust-src, llvm-tools-preview
47+
toolchain: nightly
48+
override: true
49+
- uses: actions/checkout@v2
50+
- name: print current nightly
51+
run: rustc --version && cargo --version
52+
run: cargo build-x64
53+
3754
clippy-nightly:
38-
name: check latest nightly
55+
name: check (latest nightly)
3956
runs-on: ubuntu-latest
4057
steps:
4158
- name: install rust toolchain
@@ -48,8 +65,8 @@ jobs:
4865
- uses: actions/checkout@v2
4966
- name: print current nightly
5067
run: rustc --version && cargo --version
51-
- name: run cargo clippy
52-
uses: actions-rs/cargo@v1.0.1
53-
with:
54-
command: clippy
55-
args: --all --all-features
68+
- name: install Just
69+
uses: extractions/setup-just@v1
70+
- uses: olix0r/cargo-action-fmt@ee1ef42932e44794821dab57ef1bf7a73df8b21f
71+
- name: cargo clippy
72+
run: just clippy

0 commit comments

Comments
 (0)