Skip to content
Snippets Groups Projects
Commit 2db79ece authored by Will Sloan's avatar Will Sloan
Browse files

Fix issue with non-persistent cd in CI

parent 2b632770
No related branches found
No related tags found
No related merge requests found
Pipeline #8223 failed
......@@ -34,13 +34,15 @@ build-flasher:
stage: build-flasher
script:
- rm -rf flasher; mkdir flasher
- cd firmware-flasher # cd into submodule
- cp ../firmware.bin firmware.bin
- cargo build --release --target arm-unknown-linux-gnueabihf
- cargo build --release --target x86_64-pc-windows-gnu
- cp target/arm-unknown-linux-gnueabihf/release/stm32-firmware-flasher ../flasher/flasher-linux
- arm-linux-gnueabihf-strip ../flasher/flasher-linux
- cp target/x86_64-pc-windows-gnu/release/stm32-firmware-flasher.exe ../flasher/flasher-windows.exe
- >
(cd firmware-flasher &&
cp ../firmware.bin firmware.bin &&
cargo build --release --target arm-unknown-linux-gnueabihf &&
cargo build --release --target x86_64-pc-windows-gnu &&
cp target/arm-unknown-linux-gnueabihf/release/stm32-firmware-flasher ../flasher/flasher-linux &&
arm-linux-gnueabihf-strip ../flasher/flasher-linux &&
cp target/x86_64-pc-windows-gnu/release/stm32-firmware-flasher.exe ../flasher/flasher-windows.exe
)
artifacts:
paths:
- flasher/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment