Skip to content

Commit 70cb038

Browse files
committed
Make verbose builds optional.
1 parent 16102cb commit 70cb038

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
rustup component add llvm-tools-preview
2323
cargo install cargo-binutils
2424
- name: Build
25-
run: ./build.sh
25+
run: ./build.sh --verbose
2626
- name: Upload files to Release
2727
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
2828
uses: softprops/action-gh-release@v1

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ for TARGET_ARCH in thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi; do
1111
echo "TARGET is ${TARGET_ARCH}"
1212
for BINARY in flash0002 flash0802 flash1002; do
1313
echo "BINARY is ${BINARY}"
14-
cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY}
14+
cargo build $* --release --target=${TARGET_ARCH} --bin ${BINARY}
1515
# objcopy would do the build for us first, but it doesn't have good build output
16-
cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin
16+
cargo objcopy $* --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin
1717
# Keep the ELF file too (for debugging)
1818
cp ./target/${TARGET_ARCH}/release/${BINARY} ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.elf
1919
done

0 commit comments

Comments
 (0)