-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
115 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- linux-amd64 | ||
- linux-386 | ||
- darwin-amd64 | ||
- windows-amd64 | ||
- linux-arm | ||
- linux-arm64 | ||
- linux-ppc64le | ||
- linux-s390x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.16" | ||
- env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
echo "${TARGET}" | ||
case "${TARGET}" in | ||
linux-amd64) | ||
GOARCH=amd64 PASSES='build' ./test.sh | ||
;; | ||
linux-386) | ||
GOARCH=386 PASSES='build' ./test.sh | ||
;; | ||
darwin-amd64) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh | ||
;; | ||
windows-amd64) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh | ||
;; | ||
linux-arm) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh | ||
;; | ||
linux-arm64) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh | ||
;; | ||
linux-ppc64le) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=ppc64le ./build.sh | ||
;; | ||
linux-s390x) | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.sh | ||
;; | ||
*) | ||
echo "Failed to find target" | ||
exit 1 | ||
;; | ||
esac |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Static Analysis | ||
on: [push, pull_request] | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- linux-amd64-fmt | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.16" | ||
- run: date | ||
- env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
echo "${TARGET}" | ||
case "${TARGET}" in | ||
linux-amd64-fmt) | ||
GOARCH=amd64 PASSES='fmt bom dep' ./test.sh | ||
;; | ||
*) | ||
echo "Failed to find target" | ||
exit 1 | ||
;; | ||
esac |
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