Use parallel jobs and expose artifacts

This commit is contained in:
Dawson Coleman 2021-09-14 16:41:22 -05:00
parent da13409e9e
commit 39202b8e7c

View File

@ -17,4 +17,19 @@ before_script:
build_all: build_all:
stage: build stage: build
script: "pio run" script:
- pio run -e $PIO_ENV
# Workaround for artifacts:expose_as not being compatible with the use of variables in artifacts:paths
# Instead we can move the firmware from env folder to a common location
- mv .pio/build/$PIO_ENV/firmware.hex . || true
- mv .pio/build/$PIO_ENV/firmware.bin . || true
parallel:
matrix:
- PIO_ENV: [MiniV2, TAZ6, Workhorse, TAZPro, TAZProXT, Sidekick_289, Sidekick_747]
artifacts:
expose_as: firmware
name: $PIO_ENV-$CI_PIPELINE_IID-$CI_COMMIT_SHA
paths:
- firmware.hex
- firmware.bin
expire_in: 14 days