From 72aa3a45802711588ed086671ec33a94f9f6d087 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 10 Sep 2019 23:25:47 +0200 Subject: [PATCH] Update github actions script for post-02 --- .github/workflows/build-code.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index 05b1f6cc..28e212da 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -31,23 +31,17 @@ jobs: rustc -Vv cargo -Vv - - name: "Add thumbv7em-none-eabihf Target" - run: rustup target add thumbv7em-none-eabihf + - name: "Install Rustup Components" + 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" - run: cargo build --target thumbv7em-none-eabihf - - - name: "Build for Linux" - 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" + - name: "Run cargo xbuild" + run: cargo xbuild + - name: "Create Bootimage" + run: cargo bootimage check_formatting: