-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: Build artifacts as part of workflow
Signed-off-by: Alistair Francis <[email protected]>
- Loading branch information
1 parent
672fae9
commit 985a467
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Artifacts | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
|
||
- name: Install dependencies | ||
run: | | ||
rustup target add thumbv7em-none-eabi | ||
rustup target add riscv32imac-unknown-none-elf | ||
rustup target add riscv32imc-unknown-none-elf | ||
cargo install elf2tab --version 0.4.0 | ||
- name: Build Hello World | ||
run: | | ||
FEATURES="alloc" make flash-apollo3 EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-hail EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-nucleo_f429zi EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-nucleo_f446re EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-nrf52840 EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-opentitan EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-hifive1 EXAMPLE=hello_world -j2 | ||
FEATURES="alloc" make flash-nrf52 EXAMPLE=hello_world -j2 | ||
- name: Build libtock-test | ||
run: | | ||
FEATURES="alloc" make flash-apollo3 EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-hail EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-nucleo_f429zi EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-nucleo_f446re EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-nrf52840 EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-opentitan EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-hifive1 EXAMPLE=libtock_test -j2 | ||
FEATURES="alloc" make flash-nrf52 EXAMPLE=libtock_test -j2 | ||
- name: Build extra tests | ||
run: | | ||
FEATURES="alloc" make flash-opentitan EXAMPLE=hmac -j2 | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: libtock-rs examples | ||
path: target/*/tab/*/*/*.tbf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters