Rename build outputs.

This commit is contained in:
Andrew Alderwick 2022-01-23 21:39:43 +00:00
parent a960133b06
commit 178b63b951
1 changed files with 15 additions and 19 deletions

View File

@ -19,7 +19,7 @@ sources:
tasks: tasks:
- prepare: | - prepare: |
rm -f out build rm -f out build
mkdir -p out build/linux-amd64 build/windows-64bit build/macos build/rompack/uxn mkdir -p out build/uxn-lin64 build/uxn-win64 build/uxn-mac64 build/essentials/uxn
umask 077 umask 077
mkdir -p ~/.ssh mkdir -p ~/.ssh
printf '%s\n' "${SSH_HOST_KEYS}" > ~/.ssh/known_hosts printf '%s\n' "${SSH_HOST_KEYS}" > ~/.ssh/known_hosts
@ -27,9 +27,8 @@ tasks:
- build-linux: | - build-linux: |
cd uxn cd uxn
./build.sh --no-run ./build.sh --no-run
mv bin ../build/linux-amd64/uxn mv bin ../build/uxn-lin64/uxn
- build-rompack: | - build-essentials: |
mkdir -p rompack/uxn
for F in uxn/projects/software/calc.tal uxn/projects/software/launcher.tal uxn/projects/examples/demos/piano.tal uxn/projects/examples/demos/clock.tal catclock/src/main.tal dexe/src/main.tal donsol/src/main.tal left/src/main.tal nasu/src/main.tal noodle/src/main.tal orca-toy/src/main.tal:orca.rom turye/src/main.tal; do for F in uxn/projects/software/calc.tal uxn/projects/software/launcher.tal uxn/projects/examples/demos/piano.tal uxn/projects/examples/demos/clock.tal catclock/src/main.tal dexe/src/main.tal donsol/src/main.tal left/src/main.tal nasu/src/main.tal noodle/src/main.tal orca-toy/src/main.tal:orca.rom turye/src/main.tal; do
PROJECT="${F%%/*}" PROJECT="${F%%/*}"
if [ "${F}" = "${F%:*}" ]; then if [ "${F}" = "${F%:*}" ]; then
@ -41,26 +40,23 @@ tasks:
F="${F%:*}" F="${F%:*}"
fi fi
[ -d "${PROJECT}" ] || git clone "https://git.sr.ht/~rabbits/${PROJECT}" [ -d "${PROJECT}" ] || git clone "https://git.sr.ht/~rabbits/${PROJECT}"
( cd "${PROJECT}" && ../build/linux-amd64/uxn/uxnasm "${F#*/}" "../build/rompack/uxn/${ROMNAME}" || rm -f "../build/rompack/uxn/${ROMNAME}" ) ( cd "${PROJECT}" && ../build/uxn-lin64/uxn/uxnasm "${F#*/}" "../build/essentials/uxn/${ROMNAME}" || rm -f "../build/essentials/uxn/${ROMNAME}" )
done done
[ -e ~/.ssh/id_rsa ] || complete-build [ -e ~/.ssh/id_rsa ] || complete-build
- build-windows: | - build-windows: |
ssh win "rm -f uxn-windows-64bit.zip; export PATH=\"\${PATH}:/mingw64/bin\"; set -ex; cd uxn; git fetch; git checkout .; git clean -xfd; git checkout $(cd uxn && git rev-parse HEAD); MSYSTEM=MSYS ./build.sh --no-run" ssh win "export PATH=\"\${PATH}:/mingw64/bin\"; set -ex; cd uxn; git fetch; git checkout .; git clean -xfd; git checkout $(cd uxn && git rev-parse HEAD); MSYSTEM=MSYS ./build.sh --no-run"
rsync -rp win:uxn/bin/ build/windows-64bit/uxn/ rsync -rp win:uxn/bin/ build/uxn-win64/uxn/
- build-macos: | - build-macos: |
ssh mac "rm -f uxn-macos.tar.gz; export PATH=\"\${PATH}:/usr/local/bin\"; set -ex; cd uxn; git fetch; git checkout .; git clean -xfd; git checkout $(cd uxn && git rev-parse HEAD); ./build.sh --no-run" ssh mac "export PATH=\"\${PATH}:/usr/local/bin\"; set -ex; cd uxn; git fetch; git checkout .; git clean -xfd; git checkout $(cd uxn && git rev-parse HEAD); ./build.sh --no-run"
rsync -rp mac:uxn/bin/ build/macos/uxn/ rsync -rp mac:uxn/bin/ build/uxn-mac64/uxn/
- archive: | - archive: |
for PROJECT in linux-amd64 windows-64bit macos rompack; do for PROJECT in uxn-lin64 uxn-win64 uxn-mac64 essentials; do
tar -czf "out/uxn-${PROJECT}.tar.gz" -C "build/${PROJECT}" uxn tar -czf "out/${PROJECT}.tar.gz" -C "build/${PROJECT}" uxn
( cd "build/${PROJECT}" && zip -qr "../../out/uxn-${PROJECT}.zip" uxn ) ( cd "build/${PROJECT}" && zip -qr "../../out/${PROJECT}.zip" uxn )
if [ "${PROJECT}" = rompack ]; then if [ "${PROJECT}" != essentials ]; then
cp "out/uxn-${PROJECT}.tar.gz" out/uxn-essentials.tar.gz cp build/essentials/uxn/* "build/${PROJECT}/uxn/"
cp "out/uxn-${PROJECT}.zip" out/uxn-essentials.zip tar -czf "out/uxn-essentials-${PROJECT#uxn-}.tar.gz" -C "build/${PROJECT}" uxn
else ( cd "build/${PROJECT}" && zip -qr "../../out/uxn-essentials-${PROJECT#uxn-}.zip" uxn )
cp build/rompack/uxn/* "build/${PROJECT}/uxn/"
tar -czf "out/uxn-essentials-${PROJECT}.tar.gz" -C "build/${PROJECT}" uxn
( cd "build/${PROJECT}" && zip -qr "../../out/uxn-essentials-${PROJECT}.zip" uxn )
fi fi
done done
- upload: | - upload: |