mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Build
|
|
on: [push, pull_request]
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- linux-amd64
|
|
- linux-386
|
|
- darwin-amd64
|
|
- darwin-arm64
|
|
- windows-amd64
|
|
- linux-arm
|
|
- linux-arm64
|
|
- linux-ppc64le
|
|
- linux-s390x
|
|
steps:
|
|
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
|
|
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
|
with:
|
|
go-version: "1.19.7"
|
|
- env:
|
|
TARGET: ${{ matrix.target }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
echo "${TARGET}"
|
|
case "${TARGET}" in
|
|
linux-amd64)
|
|
GOARCH=amd64 PASSES='build' ./scripts/test.sh
|
|
;;
|
|
linux-386)
|
|
GOARCH=386 PASSES='build' ./scripts/test.sh
|
|
;;
|
|
darwin-amd64)
|
|
GOARCH=amd64 GOOS=darwin GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
darwin-arm64)
|
|
GOARCH=arm64 GOOS=darwin GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
windows-amd64)
|
|
GOARCH=amd64 GOOS=windows GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
linux-arm)
|
|
GOARCH=arm GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
linux-arm64)
|
|
GOARCH=arm64 GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
linux-ppc64le)
|
|
GOARCH=ppc64le GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
linux-s390x)
|
|
GOARCH=s390x GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh
|
|
;;
|
|
*)
|
|
echo "Failed to find target"
|
|
exit 1
|
|
;;
|
|
esac
|