Skip to content
Snippets Groups Projects
Commit 0acd3a90 authored by Cyril Danilevski's avatar Cyril Danilevski
Browse files

Get output as artefact

parent 05643a9c
No related branches found
No related tags found
1 merge request!1Add CI
Pipeline #130654 passed
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -30,11 +30,11 @@ build: ...@@ -30,11 +30,11 @@ build:
- arduino-cli lib install --git-url https://github.com/patricklaf/SNMP.git --config-file arduino-cli.yaml - arduino-cli lib install --git-url https://github.com/patricklaf/SNMP.git --config-file arduino-cli.yaml
# Compile artifact # Compile artifact
- arduino-cli compile -v --fqbn esp32:esp32:esp32wroverkit -o firmware.bin - arduino-cli compile --fqbn esp32:esp32:esp32wroverkit icbm.ino --output-dir firmware
icbm.ino - zip -r firmware.zip firmware
artifacts: artifacts:
when: always when: always
paths: paths:
- firmware.bin - firmware.zip
expire_in: 1 week expire_in: 1 week
interruptible: true interruptible: true
...@@ -53,4 +53,11 @@ The project can be compiled so: ...@@ -53,4 +53,11 @@ The project can be compiled so:
And uploaded so: And uploaded so:
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit . arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit
### CI Artefacts
CI artefacts can be uploaded so:
unzip firmware.zip
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit --input-dir firmware
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