generated from Neotron-Compute/Neotron-XXX-BIOS
-
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (66 loc) · 2.62 KB
/
rust.yml
File metadata and controls
76 lines (66 loc) · 2.62 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 thumbv7em-none-eabi
rustup target add thumbv7m-none-eabi
rustup target add thumbv6m-none-eabi
rustup component add llvm-tools-preview
- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: cargo-binutils@0.3.6
- name: Unpack disk
run: zcat src/disk.img.gz > src/disk.img
- name: Check Syntax
run: |
cargo check
- name: Build Release
run: |
cargo build --target=thumbv6m-none-eabi
cargo build --target=thumbv7m-none-eabi
cargo build --target=thumbv7em-none-eabi
cargo build --release --target=thumbv6m-none-eabi
cargo build --release --target=thumbv7m-none-eabi
cargo build --release --target=thumbv7em-none-eabi
- name: Size
run: |
cargo size --target=thumbv6m-none-eabi -- -A
cargo size --target=thumbv7m-none-eabi -- -A
cargo size --target=thumbv7em-none-eabi -- -A
cargo size --release --target=thumbv6m-none-eabi -- -A
cargo size --release --target=thumbv7m-none-eabi -- -A
cargo size --release --target=thumbv7em-none-eabi -- -A
- name: Upload Artifacts
uses: actions/upload-artifact@v3
if: ${{success()}}
with:
name: Artifacts
if-no-files-found: error
path: |
./target/thumbv6m-none-eabi/debug/neotron-qemu-bios
./target/thumbv6m-none-eabi/release/neotron-qemu-bios
./target/thumbv7m-none-eabi/debug/neotron-qemu-bios
./target/thumbv7m-none-eabi/release/neotron-qemu-bios
./target/thumbv7em-none-eabi/debug/neotron-qemu-bios
./target/thumbv7em-none-eabi/release/neotron-qemu-bios
- name: Upload files to Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
./target/thumbv6m-none-eabi/debug/neotron-qemu-bios
./target/thumbv6m-none-eabi/release/neotron-qemu-bios
./target/thumbv7m-none-eabi/debug/neotron-qemu-bios
./target/thumbv7m-none-eabi/release/neotron-qemu-bios
./target/thumbv7em-none-eabi/debug/neotron-qemu-bios
./target/thumbv7em-none-eabi/release/neotron-qemu-bios