Skip to content

Commit e691702

Browse files
author
Johannes Draaijer
committed
Build examples in release mode so they'll fit in the f107's flash
1 parent 8638e25 commit e691702

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,35 +137,35 @@ jobs:
137137
with:
138138
use-cross: false
139139
command: build
140-
args: --target=${{ matrix.target }} --example pktgen --features stm32f429
140+
args: --release --target=${{ matrix.target }} --example pktgen --features stm32f429
141141

142142
- name: cargo build f4 example ip
143143
uses: actions-rs/cargo@v1
144144
with:
145145
use-cross: false
146146
command: build
147-
args: --target=${{ matrix.target }} --example ip --features stm32f429,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
147+
args: --release --target=${{ matrix.target }} --example ip --features stm32f429,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
148148

149149
- name: cargo build f4 example arp
150150
uses: actions-rs/cargo@v1
151151
with:
152152
use-cross: false
153153
command: build
154-
args: --target=${{ matrix.target }} --example arp --features stm32f407
154+
args: --release --target=${{ matrix.target }} --example arp --features stm32f407
155155

156156
- name: cargo build f4 example arp-smoltcp
157157
uses: actions-rs/cargo@v1
158158
with:
159159
use-cross: false
160160
command: build
161-
args: --target=${{ matrix.target }} --example arp-smoltcp --features stm32f407,smoltcp-phy,smoltcp/socket-icmp
161+
args: --release --target=${{ matrix.target }} --example arp-smoltcp --features stm32f407,smoltcp-phy,smoltcp/socket-icmp
162162

163163
- name: cargo build f1 example ip
164164
uses: actions-rs/cargo@v1
165165
with:
166166
use-cross: false
167167
command: build
168-
args: --target=${{ matrix.target }} --example ip-f107 --features stm32f107,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
168+
args: --release --target=${{ matrix.target }} --example ip-f107 --features stm32f107,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
169169

170170
rtic-echo-example:
171171
name: rtic-echo example

0 commit comments

Comments
 (0)