...
|
...
|
@@ -9,6 +9,7 @@ environment:
|
9
|
9
|
SITE: rabbits.srht.site
|
10
|
10
|
SSH_HOST_KEYS: |
|
11
|
11
|
[w1.uxn-build.ald.nu]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP+IYCB4JrKklFjWSMRkPBTqUjBqUuhlDQy6/X3l8xj5
|
|
12
|
+ [m1.uxn-build.ald.nu]:2223 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDvWVqlHh3XQ5ziEbT55K896/mW2BVDdkU6hWgIfU9md
|
12
|
13
|
secrets:
|
13
|
14
|
- 138ad607-a4ec-4d74-88a1-8f3be2ba2d03
|
14
|
15
|
tasks:
|
...
|
...
|
@@ -18,7 +19,7 @@ tasks:
|
18
|
19
|
umask 077
|
19
|
20
|
mkdir -p ~/.ssh
|
20
|
21
|
printf '%s\n' "${SSH_HOST_KEYS}" > ~/.ssh/known_hosts
|
21
|
|
- printf 'Host win\nHostName w1.uxn-build.ald.nu\nPort 2222\nUser build\nStrictHostKeyChecking yes\nCheckHostIP no\n' > ~/.ssh/config
|
|
22
|
+ 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
|
22
|
23
|
- build-linux: |
|
23
|
24
|
cd uxn
|
24
|
25
|
sed -i -e 's/.*Running.*/exit/' build.sh
|
...
|
...
|
@@ -29,9 +30,12 @@ tasks:
|
29
|
30
|
- build-windows: |
|
30
|
31
|
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"
|
31
|
32
|
rsync win:uxn-windows-64bit.zip out/
|
|
33
|
+ - build-macos: |
|
|
34
|
+ 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"
|
|
35
|
+ rsync mac:uxn-macos.tar.gz out/
|
32
|
36
|
- upload: |
|
33
|
37
|
ls -l out
|
34
|
|
- tar -czf out.tar.gz -C out uxn-linux-amd64.tar.gz uxn-windows-64bit.zip
|
|
38
|
+ tar -czf out.tar.gz -C out uxn-linux-amd64.tar.gz uxn-windows-64bit.zip uxn-macos.tar.gz
|
35
|
39
|
acurl() {
|
36
|
40
|
set +x
|
37
|
41
|
curl -H "Authorization: Bearer ${OAUTH2_TOKEN}" "${@}"
|