Use parallel jobs and expose artifacts
This commit is contained in:
parent
da13409e9e
commit
39202b8e7c
@ -10,11 +10,26 @@ cache:
|
|||||||
- .platformio-cache/
|
- .platformio-cache/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "pip install -U platformio"
|
- "pip install -U platformio"
|
||||||
|
|
||||||
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
|
Loading…
Reference in New Issue
Block a user