Skip to content

Commit

Permalink
πŸ’š Fix CI for firmware compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rasch committed Jun 17, 2024
1 parent 35d9ab8 commit ad1fc51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BUILD_DIR=./dist
FW_DIR=./fw
PCB_DIR=./pcb
PROJECT=phalanx
HOME="${HOME:-/root}"

_msg() {
printf '\e[32m%s %s\e[0m\n' "$1" "$2"
Expand Down Expand Up @@ -194,16 +195,16 @@ pcb() {
fw() {
_init

if ! test -d /root/qmk_firmware; then
if ! test -d "$HOME"/qmk_firmware; then
python3 -m pip install qmk
qmk setup --yes

mkdir -p /etc/udev/rules.d
cp -a /root/qmk_firmware/util/udev/50-qmk.rules /etc/udev/rules.d/
cp -a "$HOME"/qmk_firmware/util/udev/50-qmk.rules /etc/udev/rules.d/
fi

QMK_BUILD_DIR=/root/qmk_firmware/.build
QMK_KEYBOARD_DIR=/root/qmk_firmware/keyboards/"$PROJECT"
QMK_BUILD_DIR="$HOME"/qmk_firmware/.build
QMK_KEYBOARD_DIR="$HOME"/qmk_firmware/keyboards/"$PROJECT"

trap 'rm -rf "$QMK_KEYBOARD_DIR" "$QMK_BUILD_DIR"' EXIT INT TERM

Expand Down

0 comments on commit ad1fc51

Please # to comment.