-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #799 from yggdrasil-network/develop
Version 0.4.0
- Loading branch information
Showing
96 changed files
with
2,773 additions
and
11,893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ jobs: | |
go get github.com/golangci/golangci-lint/cmd/[email protected] | ||
golangci-lint run | ||
- run: | ||
name: Run Go tests | ||
command: | | ||
go test ./... | ||
build-linux: | ||
docker: | ||
- image: circleci/golang:1.16 | ||
|
@@ -157,43 +162,6 @@ jobs: | |
paths: | ||
- upload | ||
|
||
build-windows: | ||
docker: | ||
- image: circleci/golang:1.16 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Create artifact upload directory and set variables | ||
command: | | ||
mkdir /tmp/upload | ||
echo 'export CINAME=$(sh contrib/semver/name.sh)' >> $BASH_ENV | ||
echo 'export CIVERSION=$(sh contrib/semver/version.sh --bare)' >> $BASH_ENV | ||
git config --global user.email "$(git log --format='%ae' HEAD -1)"; | ||
git config --global user.name "$(git log --format='%an' HEAD -1)"; | ||
- run: | ||
name: Install tools | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get -y install msitools wixl | ||
- run: | ||
name: Build for Windows | ||
command: | | ||
rm -f {yggdrasil,yggdrasilctl} | ||
GOOS=windows GOARCH=amd64 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-amd64.exe && mv yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-windows-amd64.exe; | ||
GOOS=windows GOARCH=386 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-i386.exe && mv yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-windows-i386.exe; | ||
bash contrib/msi/build-msi.sh x64 | ||
bash contrib/msi/build-msi.sh x86 | ||
mv *.msi /tmp/upload | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- upload | ||
|
||
build-other: | ||
docker: | ||
- image: circleci/golang:1.16 | ||
|
@@ -224,6 +192,13 @@ jobs: | |
GOOS=freebsd GOARCH=amd64 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-freebsd-amd64 && mv yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-freebsd-amd64; | ||
GOOS=freebsd GOARCH=386 ./build && mv yggdrasil /tmp/upload/$CINAME-$CIVERSION-freebsd-i386 && mv yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-freebsd-i386; | ||
- run: | ||
name: Build for Windows | ||
command: | | ||
rm -f {yggdrasil,yggdrasilctl} | ||
GOOS=windows GOARCH=amd64 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-amd64.exe && mv yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-windows-amd64.exe; | ||
GOOS=windows GOARCH=386 ./build && mv yggdrasil.exe /tmp/upload/$CINAME-$CIVERSION-windows-i386.exe && mv yggdrasilctl.exe /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-windows-i386.exe; | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
|
@@ -247,11 +222,9 @@ workflows: | |
- lint | ||
- build-linux | ||
- build-macos | ||
- build-windows | ||
- build-other | ||
- upload: | ||
requires: | ||
- build-linux | ||
- build-macos | ||
- build-windows | ||
- build-other |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '{build}' | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
os: Visual Studio 2019 | ||
shallow_clone: false | ||
|
||
environment: | ||
MSYS2_PATH_TYPE: inherit | ||
CHERE_INVOKING: enabled_from_arguments | ||
|
||
build_script: | ||
- cmd: >- | ||
cd %APPVEYOR_BUILD_FOLDER% | ||
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi.sh x64" | ||
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi.sh x86" | ||
|
||
test: off | ||
|
||
artifacts: | ||
- path: '*.msi' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.