2021-04-12 16:01:49 -05:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
docker run -it --rm \
|
|
|
|
-v (pwd):/zorne \
|
2021-04-12 16:24:12 -05:00
|
|
|
zmkfirmware/zmk-build-arm:2.4 sh -c 'cd /zorne
|
|
|
|
mkdir -p /zorne/config
|
|
|
|
mkdir -p /zorne/_built
|
2021-04-12 16:31:52 -05:00
|
|
|
cp -r /zorne/corne.keymap /zorne/corne.conf /zorne/west.yml /zorne/config/
|
2021-04-12 16:24:12 -05:00
|
|
|
west init -l config
|
2021-04-12 16:01:49 -05:00
|
|
|
west update
|
|
|
|
west zephyr-export
|
2021-04-12 16:24:12 -05:00
|
|
|
echo "Building left"
|
|
|
|
west build -s zmk/app -b nice_nano -- -DSHIELD=corne_left -DZMK_CONFIG="."
|
|
|
|
cp build/zephyr/zmk.uf2 _built/corne_left_nice_nano.uf2
|
|
|
|
echo "Building right"
|
2021-04-12 16:01:49 -05:00
|
|
|
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
2021-04-12 16:24:12 -05:00
|
|
|
cp build/zephyr/zmk.uf2 _built/corne_right_nice_nano.uf2'
|