Fix workflow syntax

This commit is contained in:
Philipp Oppermann
2020-07-17 11:38:30 +02:00
parent b276ec4765
commit 635677d07c

View File

@@ -57,17 +57,17 @@ jobs:
run: cargo install bootimage --debug
- name: Checkout Repository
uses: actions/checkout@v2
- name: "Add thumbv7em-none-eabihf Target"
- name: Add thumbv7em-none-eabihf Target
run: rustup target add thumbv7em-none-eabihf
- name: "Build for thumbv7em-none-eabihf"
- name: Build for thumbv7em-none-eabihf
run: cargo build --target thumbv7em-none-eabihf
- name: "Build for Linux"
- name: Build for Linux
if: runner.os == 'Linux'
run: cargo rustc -- -C link-arg=-nostartfiles
- name: "Build for macOS"
- name: Build for macOS
if: runner.os == 'macOS'
run: cargo rustc -- -C link-args="-e __start -static -nostartfiles"
- name: "Build for Windows"
- name: Build for Windows
if: runner.os == 'Windows'
run: cargo rustc -- -C link-args="/ENTRY:_start /SUBSYSTEM:console"