Build script maintenance

This commit is contained in:
Andrew Alderwick 2021-11-10 07:10:42 +00:00
parent 8990ad84ad
commit 6e28039b37
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,8 @@ environment:
[m1.uxn-build.ald.nu]:2223 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDvWVqlHh3XQ5ziEbT55K896/mW2BVDdkU6hWgIfU9md [m1.uxn-build.ald.nu]:2223 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDvWVqlHh3XQ5ziEbT55K896/mW2BVDdkU6hWgIfU9md
secrets: secrets:
- 138ad607-a4ec-4d74-88a1-8f3be2ba2d03 - 138ad607-a4ec-4d74-88a1-8f3be2ba2d03
sources:
- https://git.sr.ht/~rabbits/uxn
tasks: tasks:
- prepare: | - prepare: |
rm -f out rm -f out
@ -26,6 +28,7 @@ tasks:
mv bin uxn mv bin uxn
tar -czf ../out/uxn-linux-amd64.tar.gz uxn tar -czf ../out/uxn-linux-amd64.tar.gz uxn
cd .. cd ..
[ -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; mv bin uxn; zip -qr ../uxn-windows-64bit.zip uxn" 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; mv bin uxn; zip -qr ../uxn-windows-64bit.zip uxn"
rsync win:uxn-windows-64bit.zip out/ rsync win:uxn-windows-64bit.zip out/