You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
image: debian/stable
|
|
|
|
|
packages:
|
|
|
|
|
- xxd
|
|
|
|
|
oauth: pages.sr.ht/PAGES:RW
|
|
|
|
|
environment:
|
|
|
|
|
SITE: rabbits.srht.site/nasu
|
|
|
|
|
sources:
|
|
|
|
|
- https://git.sr.ht/~rabbits/uxnmin
|
|
|
|
|
- https://git.sr.ht/~rabbits/nasu
|
|
|
|
|
tasks:
|
|
|
|
|
- prepare: |
|
|
|
|
|
xxd -r -p uxnmin/etc/drifloon.rom.txt asm.rom
|
|
|
|
|
cc -DNDEBUG -O2 -g0 -s uxnmin/src/uxnmin.c -o uxn.bin
|
|
|
|
|
cat nasu/src/nasu.tal nasu/src/manifest.tal nasu/src/assets.tal > src.tal
|
|
|
|
|
- assemble: |
|
|
|
|
|
cat src.tal | ./uxn.bin asm.rom > nasu.rom
|
|
|
|
|
- upload: |
|
|
|
|
|
tar -czf out.tar.gz nasu.rom
|
|
|
|
|
acurl() {
|
|
|
|
|
set +x
|
|
|
|
|
curl -H "Authorization: Bearer ${OAUTH2_TOKEN}" "${@}"
|
|
|
|
|
set -x
|
|
|
|
|
}
|
|
|
|
|
acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz
|