5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 14:10:28 +00:00

Fix builds

This commit is contained in:
Neil Alexander 2018-05-20 23:59:42 +01:00
parent cda7a2abcc
commit ab3eb9877a
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 17 additions and 17 deletions

View File

@ -21,42 +21,42 @@ jobs:
- run: - run:
name: Build for Linux (including Debian packages) name: Build for Linux (including Debian packages)
command: | command: |
PKGARCH=amd64 sh contrib/deb/generate.sh && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-linux-amd64; PKGARCH=amd64 sh contrib/deb/generate.sh && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-linux-amd64;
PKGARCH=i386 sh contrib/deb/generate.sh && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-linux-i386; PKGARCH=i386 sh contrib/deb/generate.sh && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-linux-i386;
PKGARCH=mipsel sh contrib/deb/generate.sh && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-linux-mipsel; PKGARCH=mipsel sh contrib/deb/generate.sh && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-linux-mipsel;
PKGARCH=mips sh contrib/deb/generate.sh && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-linux-mips; PKGARCH=mips sh contrib/deb/generate.sh && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-linux-mips;
PKGARCH=armhf sh contrib/deb/generate.sh && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-linux-armhf; PKGARCH=armhf sh contrib/deb/generate.sh && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-linux-armhf;
mv *.deb /tmp/upload/ mv *.deb /tmp/upload/
- run: - run:
name: Build for macOS name: Build for macOS
command: | command: |
GOOS=darwin GOARCH=amd64 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-darwin-amd64; GOOS=darwin GOARCH=amd64 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-amd64;
GOOS=darwin GOARCH=386 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-darwin-i386; GOOS=darwin GOARCH=386 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-i386;
- run: - run:
name: Build for OpenBSD name: Build for OpenBSD
command: | command: |
GOOS=openbsd GOARCH=amd64 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-openbsd-amd64; GOOS=openbsd GOARCH=amd64 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-openbsd-amd64;
GOOS=openbsd GOARCH=386 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-openbsd-i386; GOOS=openbsd GOARCH=386 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-openbsd-i386;
- run: - run:
name: Build for FreeBSD name: Build for FreeBSD
command: | command: |
GOOS=freebsd GOARCH=amd64 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-freebsd-amd64; GOOS=freebsd GOARCH=amd64 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-freebsd-amd64;
GOOS=freebsd GOARCH=386 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-freebsd-i386; GOOS=freebsd GOARCH=386 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-freebsd-i386;
- run: - run:
name: Build for NetBSD name: Build for NetBSD
command: | command: |
GOOS=netbsd GOARCH=amd64 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-netbsd-amd64; GOOS=netbsd GOARCH=amd64 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-netbsd-amd64;
GOOS=netbsd GOARCH=386 ./build && mv yggdrasil yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-netbsd-i386; GOOS=netbsd GOARCH=386 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-netbsd-i386;
- run: - run:
name: Build for Windows name: Build for Windows
command: | command: |
GOOS=windows GOARCH=amd64 ./build && mv yggdrasil.exe yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-windows-amd64.exe; GOOS=windows GOARCH=amd64 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-amd64.exe;
GOOS=windows GOARCH=386 ./build && mv yggdrasil.exe yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-windows-i386.exe; GOOS=windows GOARCH=386 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-i386.exe;
- run: - run:
name: Build for EdgeRouter name: Build for EdgeRouter

View File

@ -54,7 +54,7 @@ cat > /tmp/$PKGNAME/debian/docs << EOF
Please see https://github.com/Arceliar/yggdrasil-go/ Please see https://github.com/Arceliar/yggdrasil-go/
EOF EOF
cat > /tmp/$PKGNAME/debian/install << EOF cat > /tmp/$PKGNAME/debian/install << EOF
usr/bin/yggdrasil usr/bin usr/bin/yggdrasil usr/bin/yggdrasilctl usr/bin
etc/systemd/system/*.service etc/systemd/system etc/systemd/system/*.service etc/systemd/system
EOF EOF
cat > /tmp/$PKGNAME/debian/postinst << EOF cat > /tmp/$PKGNAME/debian/postinst << EOF
@ -74,7 +74,7 @@ cp contrib/systemd/yggdrasil.service /tmp/$PKGNAME/etc/systemd/system/
cp contrib/systemd/yggdrasil-resume.service /tmp/$PKGNAME/etc/systemd/system/ cp contrib/systemd/yggdrasil-resume.service /tmp/$PKGNAME/etc/systemd/system/
tar -czvf /tmp/$PKGNAME/data.tar.gz -C /tmp/$PKGNAME/ \ tar -czvf /tmp/$PKGNAME/data.tar.gz -C /tmp/$PKGNAME/ \
usr/bin/yggdrasil \ usr/bin/yggdrasil usr/bin/yggdrasilctl \
etc/systemd/system/yggdrasil.service \ etc/systemd/system/yggdrasil.service \
etc/systemd/system/yggdrasil-resume.service etc/systemd/system/yggdrasil-resume.service
tar -czvf /tmp/$PKGNAME/control.tar.gz -C /tmp/$PKGNAME/debian . tar -czvf /tmp/$PKGNAME/control.tar.gz -C /tmp/$PKGNAME/debian .