make dist
Mockband / build (push) Failing after 12s
Details
Mockband / build (push) Failing after 12s
Details
This commit is contained in:
parent
5f44832151
commit
48d2450514
|
@ -1,46 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
log () {
|
|
||||||
echo "=== $*"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Make sure we're in the project directory
|
|
||||||
cd $(dirname $0)/..
|
|
||||||
|
|
||||||
mkdir -p out/
|
|
||||||
|
|
||||||
while read variant vid pid flags; do
|
|
||||||
log
|
|
||||||
log "Building $variant ($vid:$pid)"
|
|
||||||
log
|
|
||||||
|
|
||||||
# We can overload build.extra_flags from boards.txt,
|
|
||||||
# so just specify the -D flags to gcc
|
|
||||||
flags="$flags -DUSB_VID=$vid -DUSB_PID=$pid"
|
|
||||||
flags="$flags -DUSB_MANUFACTURER=\"woozle.org\""
|
|
||||||
flags="$flags \"-DUSB_PRODUCT=\"Mockband $variant\"\"" # wtf quoting
|
|
||||||
flags="$flags -DCDC_DISABLED"
|
|
||||||
|
|
||||||
# Arduino gets cranky when it tries to use its own cache
|
|
||||||
rm -rf build/
|
|
||||||
mkdir -p build/cache/
|
|
||||||
|
|
||||||
arduino-builder \
|
|
||||||
-build-path $(pwd)/build/ \
|
|
||||||
-build-cache $(pwd)/build/cache/ \
|
|
||||||
-fqbn arduino:avr:leonardo \
|
|
||||||
-hardware /usr/share/arduino/hardware \
|
|
||||||
-tools /usr/share/arduino/tools \
|
|
||||||
-prefs="build.extra_flags=$flags" \
|
|
||||||
-compile MockBand.ino
|
|
||||||
|
|
||||||
mv build/MockBand.ino.hex out/MockBand.$variant.hex
|
|
||||||
done << EOD
|
|
||||||
guitar 0x1bad 0x0004
|
|
||||||
guitar-wammy 0x1bad 0x0004 -DWAMMY
|
|
||||||
drums 0x1bad 0x3110
|
|
||||||
EOD
|
|
||||||
|
|
||||||
ls -l out/
|
|
|
@ -7,13 +7,14 @@ VERSION=$GITHUB_REF_NAME
|
||||||
|
|
||||||
BASE=$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION
|
BASE=$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION
|
||||||
|
|
||||||
|
curl \
|
||||||
|
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
|
||||||
|
--request DELETE \
|
||||||
|
$BASE
|
||||||
|
|
||||||
for path in "$@"; do
|
for path in "$@"; do
|
||||||
fn=$(basename "$path")
|
fn=$(basename "$path")
|
||||||
echo "=== Upload $VERSION/$fn"
|
echo "=== Upload $VERSION/$fn"
|
||||||
curl \
|
|
||||||
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
|
|
||||||
--request DELETE \
|
|
||||||
$BASE/$fn
|
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -35,8 +35,11 @@ flash-%: build/MockBand.%.hex
|
||||||
while [ ! -e $(DEVICE) ]; do echo Waiting for $(DEVICE)...; sleep 1; done
|
while [ ! -e $(DEVICE) ]; do echo Waiting for $(DEVICE)...; sleep 1; done
|
||||||
avrdude -v -patmega32u4 -cavr109 -P$(DEVICE) -b57600 -D -Uflash:w:$<:i
|
avrdude -v -patmega32u4 -cavr109 -P$(DEVICE) -b57600 -D -Uflash:w:$<:i
|
||||||
|
|
||||||
publish: $(firmwares)
|
dist: build/MockBand.zip
|
||||||
.gitea/publish.sh $^
|
|
||||||
|
build/MockBand.zip: $(firmwares)
|
||||||
|
rm -f $@
|
||||||
|
zip -r $@ README.md $^ docs/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
Loading…
Reference in New Issue