generated from Neotron-Compute/Neotron-XXX-BIOS
-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 974 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on: [push, pull_request]
jobs:
build:
name: Build (and Release)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Targets and Tools
run: |
rustup target add thumbv7m-none-eabi
rustup component add llvm-tools-preview
cargo install cargo-binutils
- name: Check Syntax
run: |
cargo check
- name: Build Debug
run: cargo build
- name: Build Release
run: cargo build --release
- name: Size
run: cargo size --release -- -A
- name: Upload files to Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
./target/thumbv7m-none-eabi/debug/neotron-qemu-bios
./target/thumbv7m-none-eabi/release/neotron-qemu-bios