Skip to content

Commit 8e59cf1

Browse files
committed
gh-actions: Build release binaries instead of debug
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent f832dba commit 8e59cf1

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/firmware.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ jobs:
1818
run: rustup show
1919

2020
- run: cargo install flip-link
21-
- run: cargo build -p ledmatrix
22-
- run: cargo build -p b1display
23-
- run: cargo build -p c1minimal
24-
# TODO: Also build release versions
25-
#- run: cargo build --all --release
21+
- run: cargo build -p ledmatrix --release
22+
- run: cargo build -p b1display --release
23+
- run: cargo build -p c1minimal --release
2624

2725
- run: |
2826
sudo apt-get update
2927
sudo apt-get install -y libudev-dev
3028
cargo install elf2uf2-rs
31-
elf2uf2-rs target/thumbv6m-none-eabi/debug/b1display b1display.uf2
32-
elf2uf2-rs target/thumbv6m-none-eabi/debug/c1minimal c1minimal.uf2
33-
elf2uf2-rs target/thumbv6m-none-eabi/debug/ledmatrix ledmatrix.uf2
29+
elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
30+
elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
31+
elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
3432
3533
- name: Upload Linux tool
3634
uses: actions/upload-artifact@v3

.github/workflows/software.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ jobs:
4444
run: rustup show
4545

4646
- name: Build Linux tool
47-
run: cargo build --target x86_64-unknown-linux-gnu -p inputmodule-control
47+
run: cargo build --release --target x86_64-unknown-linux-gnu -p inputmodule-control
4848

4949
- name: Check if Linux tool can start
50-
run: cargo run --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
50+
run: cargo run --release --target x86_64-unknown-linux-gnu -p inputmodule-control -- --help
5151

5252
- name: Upload Linux tool
5353
uses: actions/upload-artifact@v3
5454
with:
5555
name: inputmodule-control
56-
path: target/x86_64-unknown-linux-gnu/debug/inputmodule-control
56+
path: target/x86_64-unknown-linux-gnu/release/inputmodule-control
5757

5858
build-windows:
5959
name: Build Windows
@@ -65,16 +65,16 @@ jobs:
6565
run: rustup show
6666

6767
- name: Build Windows tool
68-
run: cargo build --target x86_64-pc-windows-msvc -p inputmodule-control
68+
run: cargo build --release --target x86_64-pc-windows-msvc -p inputmodule-control
6969

7070
- name: Check if Windows tool can start
71-
run: cargo run --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
71+
run: cargo run --release --target x86_64-pc-windows-msvc -p inputmodule-control -- --help
7272

7373
- name: Upload Windows App
7474
uses: actions/upload-artifact@v3
7575
with:
7676
name: inputmodule-control.exe
77-
path: target/x86_64-pc-windows-msvc/debug/inputmodule-control.exe
77+
path: target/x86_64-pc-windows-msvc/release/inputmodule-control.exe
7878

7979
lints:
8080
name: Lints

0 commit comments

Comments
 (0)