mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-04 21:35:04 +00:00
Added --no-run switch for automated builds
This saves having to run sed to edit the build script, and stops piano.rom (and piano.log) from being bundled with the binary outputs.
This commit is contained in:
parent
317d71654e
commit
01bdd950aa
2 changed files with 5 additions and 4 deletions
|
@ -22,16 +22,15 @@ tasks:
|
||||||
printf 'User build\nStrictHostKeyChecking yes\nCheckHostIP no\nHost win\nHostName w1.uxn-build.ald.nu\nPort 2222\nHost mac\nHostName m1.uxn-build.ald.nu\nPort 2223\n' > ~/.ssh/config
|
printf 'User build\nStrictHostKeyChecking yes\nCheckHostIP no\nHost win\nHostName w1.uxn-build.ald.nu\nPort 2222\nHost mac\nHostName m1.uxn-build.ald.nu\nPort 2223\n' > ~/.ssh/config
|
||||||
- build-linux: |
|
- build-linux: |
|
||||||
cd uxn
|
cd uxn
|
||||||
sed -i -e 's/.*Running.*/exit/' build.sh
|
./build.sh --no-run
|
||||||
./build.sh
|
|
||||||
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 ..
|
||||||
- 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); sed -i -e 's/.*Running.*/exit/' build.sh; MSYSTEM=MSYS ./build.sh; 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/
|
||||||
- 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); sed -i -e 's/.*Running.*/exit/' build.sh; ./build.sh; mv bin uxn; tar -zcf ../uxn-macos.tar.gz uxn"
|
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; mv bin uxn; tar -zcf ../uxn-macos.tar.gz uxn"
|
||||||
rsync mac:uxn-macos.tar.gz out/
|
rsync mac:uxn-macos.tar.gz out/
|
||||||
- upload: |
|
- upload: |
|
||||||
ls -l out
|
ls -l out
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -64,6 +64,8 @@ fi
|
||||||
echo "Assembling(asma).."
|
echo "Assembling(asma).."
|
||||||
./bin/uxnasm projects/software/asma.tal bin/asma.rom
|
./bin/uxnasm projects/software/asma.tal bin/asma.rom
|
||||||
|
|
||||||
|
if [ "${1}" = '--no-run' ]; then exit; fi
|
||||||
|
|
||||||
echo "Assembling(piano).."
|
echo "Assembling(piano).."
|
||||||
bin/uxncli bin/asma.rom projects/examples/demos/piano.tal bin/piano.rom 2> bin/piano.log
|
bin/uxncli bin/asma.rom projects/examples/demos/piano.tal bin/piano.rom 2> bin/piano.log
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue