|
|
@ -179,37 +179,37 @@ jobs:
|
|
|
|
secrets:
|
|
|
|
secrets:
|
|
|
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
dev-build-arm64:
|
|
|
|
# dev-build-arm64:
|
|
|
|
# only run on enterprise because GHA does not have arm64 runners in OSS
|
|
|
|
# # only run on enterprise because GHA does not have arm64 runners in OSS
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
# if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
needs:
|
|
|
|
# needs:
|
|
|
|
- setup
|
|
|
|
# - setup
|
|
|
|
uses: ./.github/workflows/reusable-dev-build.yml
|
|
|
|
# uses: ./.github/workflows/reusable-dev-build.yml
|
|
|
|
with:
|
|
|
|
# with:
|
|
|
|
uploaded-binary-name: 'consul-bin-arm64'
|
|
|
|
# uploaded-binary-name: 'consul-bin-arm64'
|
|
|
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
|
|
|
# runs-on: ${{ needs.setup.outputs.compute-xl }}
|
|
|
|
go-arch: "arm64"
|
|
|
|
# go-arch: "arm64"
|
|
|
|
repository-name: ${{ github.repository }}
|
|
|
|
# repository-name: ${{ github.repository }}
|
|
|
|
secrets:
|
|
|
|
# secrets:
|
|
|
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
# elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
go-test-arm64:
|
|
|
|
# go-test-arm64:
|
|
|
|
# only run on enterprise because GHA does not have arm64 runners in OSS
|
|
|
|
# # only run on enterprise because GHA does not have arm64 runners in OSS
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
# if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
needs:
|
|
|
|
# needs:
|
|
|
|
- setup
|
|
|
|
# - setup
|
|
|
|
- dev-build-arm64
|
|
|
|
# - dev-build-arm64
|
|
|
|
uses: ./.github/workflows/reusable-unit-split.yml
|
|
|
|
# uses: ./.github/workflows/reusable-unit-split.yml
|
|
|
|
with:
|
|
|
|
# with:
|
|
|
|
directory: .
|
|
|
|
# directory: .
|
|
|
|
uploaded-binary-name: 'consul-bin-arm64'
|
|
|
|
# uploaded-binary-name: 'consul-bin-arm64'
|
|
|
|
runner-count: 12
|
|
|
|
# runner-count: 12
|
|
|
|
runs-on: "['self-hosted', 'ondemand', 'os=macos-arm', 'arm64']"
|
|
|
|
# runs-on: "['self-hosted', 'ondemand', 'os=macos-arm', 'arm64']"
|
|
|
|
go-test-flags: 'if ! [[ "$GITHUB_REF_NAME" =~ ^main$|^release/ ]]; then export GO_TEST_FLAGS="-short"; fi'
|
|
|
|
# go-test-flags: 'if ! [[ "$GITHUB_REF_NAME" =~ ^main$|^release/ ]]; then export GO_TEST_FLAGS="-short"; fi'
|
|
|
|
repository-name: ${{ github.repository }}
|
|
|
|
# repository-name: ${{ github.repository }}
|
|
|
|
secrets:
|
|
|
|
# secrets:
|
|
|
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
# elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
|
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
|
|
|
# consul-license: ${{secrets.CONSUL_LICENSE}}
|
|
|
|
|
|
|
|
|
|
|
|
go-test-oss:
|
|
|
|
go-test-oss:
|
|
|
|
needs:
|
|
|
|
needs:
|
|
|
|