File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ when :
2
+ - event :
3
+ - push
4
+
5
+ steps :
6
+ - name : build
7
+ image : zmkfirmware/zmk-build-arm:stable
8
+ commands :
9
+ - mkdir config
10
+ - mv west.yml boards config/
11
+ - west init -l config
12
+ - west update
13
+ - west zephyr-export
14
+ - west list
15
+ # build Zaphod - outputs build/zaphod/zephyr/zmk.uf2
16
+ - west build -s zmk/app -b zaphod -d build/zaphod -- -DZMK_CONFIG="$CI_WORKSPACE/config"
17
+ # build Zaphod Lite w/ Seeduino XIAO - outputs build/zaphod_lite_xiao/zephyr/zmk.uf2
18
+ # - west build -s zmk/app -b seeeduino_xiao -d build/zaphod_lite_xiao -- -DZMK_CONFIG="$CI_WORKSPACE/config" -DSHIELD=zaphod_lite
19
+ # build Zaphod Lite w/ Seeduino XIAO BLE - outputs build/zaphod_lite_xiao_ble/zephyr/zmk.uf2
20
+ # - west build -s zmk/app -b seeeduino_xiao_ble -d build/zaphod_lite_xiao_ble -- -DZMK_CONFIG="$CI_WORKSPACE/config" -DSHIELD=zaphod_lite
21
+ - cat -n build/zaphod/zephyr/.config
22
+ - name : upload
23
+ image : alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
24
+ commands :
25
+ - apk add curl
26
+ - stat build/zaphod/zephyr/zmk.uf2
27
+ - |
28
+ curl -sSf --user chdorner:$FORGEJO_TOKEN_CHDORNER_PACKAGE_WRITE \
29
+ --upload-file build/zaphod/zephyr/zmk.uf2 \
30
+ https://git.chdorner.com/api/packages/chdorner/generic/panic34/${CI_COMMIT_SHA}/zaphod.uf2 \
31
+ && echo "created package version ${CI_COMMIT_SHA}"
32
+ secrets :
33
+ - FORGEJO_TOKEN_CHDORNER_PACKAGE_WRITE
You can’t perform that action at this time.
0 commit comments