keyboards/zorne/build.fish

19 lines
684 B
Fish
Raw Normal View History

2021-04-12 16:01:49 -05:00
#!/usr/bin/env fish
test -d zmk/app || git clone git@github.com:zmkfirmware/zmk.git
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
cp -r /zorne/west.yml /zorne/config/west.yml
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'