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.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
68 lines
1.8 KiB
YAML
68 lines
1.8 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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- id: goversion
|
|
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
|
|
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
|
with:
|
|
go-version: ${{ steps.goversion.outputs.goversion }}
|
|
- env:
|
|
TARGET: ${{ matrix.target }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
echo "${TARGET}"
|
|
case "${TARGET}" in
|
|
linux-amd64)
|
|
GOOS=linux GOARCH=amd64 make build
|
|
;;
|
|
linux-386)
|
|
GOOS=linux GOARCH=386 make build
|
|
;;
|
|
darwin-amd64)
|
|
GOOS=darwin GOARCH=amd64 make build
|
|
;;
|
|
darwin-arm64)
|
|
GOOS=darwin GOARCH=arm64 make build
|
|
;;
|
|
windows-amd64)
|
|
GOOS=windows GOARCH=amd64 make build
|
|
;;
|
|
linux-arm)
|
|
GOOS=linux GOARCH=arm make build
|
|
;;
|
|
linux-arm64)
|
|
GOOS=linux GOARCH=arm64 make build
|
|
;;
|
|
linux-ppc64le)
|
|
GOOS=linux GOARCH=ppc64le make build
|
|
;;
|
|
linux-s390x)
|
|
GOOS=linux GOARCH=s390x make build
|
|
;;
|
|
*)
|
|
echo "Failed to find target"
|
|
exit 1
|
|
;;
|
|
esac
|