Skip to content

Commit

Permalink
build on woodpecker
Browse files Browse the repository at this point in the history
  • Loading branch information
chdorner committed Oct 25, 2024
1 parent 3462888 commit 0dfb478
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .woodpecker/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
when:
- event:
- push

steps:
- name: build
image: zmkfirmware/zmk-build-arm:stable
commands:
- mkdir config
- mv west.yml boards config/
- west init -l config
- west update
- west zephyr-export
- west list
# build Zaphod - outputs build/zaphod/zephyr/zmk.uf2
- west build -s zmk/app -b zaphod -d build/zaphod -- -DZMK_CONFIG="$CI_WORKSPACE/config"
# build Zaphod Lite w/ Seeduino XIAO - outputs build/zaphod_lite_xiao/zephyr/zmk.uf2
# - west build -s zmk/app -b seeeduino_xiao -d build/zaphod_lite_xiao -- -DZMK_CONFIG="$CI_WORKSPACE/config" -DSHIELD=zaphod_lite
# build Zaphod Lite w/ Seeduino XIAO BLE - outputs build/zaphod_lite_xiao_ble/zephyr/zmk.uf2
# - west build -s zmk/app -b seeeduino_xiao_ble -d build/zaphod_lite_xiao_ble -- -DZMK_CONFIG="$CI_WORKSPACE/config" -DSHIELD=zaphod_lite
- cat -n build/zaphod/zephyr/.config
- name: upload
image: alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
commands:
- apk add curl
- stat build/zaphod/zephyr/zmk.uf2
- |
curl -sSf --user chdorner:$FORGEJO_TOKEN_CHDORNER_PACKAGE_WRITE \
--upload-file build/zaphod/zephyr/zmk.uf2 \
https://git.chdorner.com/api/packages/chdorner/generic/panic34/${CI_COMMIT_SHA}/zaphod.uf2 \
&& echo "created package version ${CI_COMMIT_SHA}"
- |
curl -sSf --user chdorner:$FORGEJO_TOKEN_CHDORNER_PACKAGE_WRITE \
--upload-file build/zaphod/zephyr/zmk.uf2 \
https://git.chdorner.com/api/packages/chdorner/generic/panic34/latest/zaphod.uf2 \
&& echo "created package version latest"
secrets:
- FORGEJO_TOKEN_CHDORNER_PACKAGE_WRITE

0 comments on commit 0dfb478

Please sign in to comment.