mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update github actions script for post-02
This commit is contained in:
26
.github/workflows/build-code.yml
vendored
26
.github/workflows/build-code.yml
vendored
@@ -31,23 +31,17 @@ jobs:
|
|||||||
rustc -Vv
|
rustc -Vv
|
||||||
cargo -Vv
|
cargo -Vv
|
||||||
|
|
||||||
- name: "Add thumbv7em-none-eabihf Target"
|
- name: "Install Rustup Components"
|
||||||
run: rustup target add thumbv7em-none-eabihf
|
run: rustup component add rust-src llvm-tools-preview
|
||||||
|
- name: "Install cargo-xbuild"
|
||||||
|
run: cargo install cargo-xbuild --debug
|
||||||
|
- name: "Install bootimage"
|
||||||
|
run: cargo install bootimage --debug
|
||||||
|
|
||||||
- name: "Build for thumbv7em-none-eabihf"
|
- name: "Run cargo xbuild"
|
||||||
run: cargo build --target thumbv7em-none-eabihf
|
run: cargo xbuild
|
||||||
|
- name: "Create Bootimage"
|
||||||
- name: "Build for Linux"
|
run: cargo bootimage
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: cargo rustc -- -C link-arg=-nostartfiles
|
|
||||||
|
|
||||||
- name: "Build for macOS"
|
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: cargo rustc -- -C link-args="-e __start -static -nostartfiles"
|
|
||||||
|
|
||||||
- name: "Build for Windows"
|
|
||||||
if: runner.os == 'Windows'
|
|
||||||
run: cargo rustc -- -C link-args="/ENTRY:_start /SUBSYSTEM:console"
|
|
||||||
|
|
||||||
|
|
||||||
check_formatting:
|
check_formatting:
|
||||||
|
|||||||
Reference in New Issue
Block a user