Update github actions script for post-02

This commit is contained in:
Philipp Oppermann
2019-09-10 23:25:47 +02:00
parent 5d7c4678de
commit 72aa3a4580

View File

@@ -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: