From 2db79ece7deddbafc67adf85d38953336be59d1b Mon Sep 17 00:00:00 2001 From: Will Sloan <will@848.email> Date: Sun, 12 Jan 2025 22:04:46 -0500 Subject: [PATCH] Fix issue with non-persistent cd in CI --- .gitlab-ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1de017b..40970d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/* -- GitLab