-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of ci: increase ENT runner size for xl to match OSS. have bu…
…ild-distros use xl to match CircleCI into release/1.13.x (#16922) * no-op commit due to failed cherry-picking * increase ENT runner size for xl to match OSS. have guild-distros use xl to match CircleCI (#16920) * ci: Add success jobs. make go-test-enterprise conditional. build-distros and go-tests trigger on push to main and release branches (#16905) * Add go-tests-success job and make go-test-enterprise conditional * fixing lint-32bit reference * fixing reference to -go-test-troubleshoot * add all jobs that fan out. * fixing success job to need set up * add echo to success job * adding success jobs to build-artifacts, build-distros, and frontend. * changing the name of the job in verify ci to be consistent with other workflows * enable go-tests, build-distros, and verify-ci to run on merge to main and release branches because they currently do not with just the pull_request trigger --------- Co-authored-by: temp <[email protected]> Co-authored-by: John Murret <[email protected]>
- Loading branch information
1 parent
977ed28
commit 9441833
Showing
5 changed files
with
82 additions
and
7 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
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 |
---|---|---|
|
@@ -2,7 +2,13 @@ | |
# It is aimed at checking new commits don't introduce any breaking build changes. | ||
name: build-distros | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
# Push events on the main branch | ||
- main | ||
- release/** | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -38,7 +44,7 @@ jobs: | |
- check-go-mod | ||
env: | ||
XC_OS: "freebsd linux windows" | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-medium) }} | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
|
||
|
@@ -62,7 +68,7 @@ jobs: | |
- check-go-mod | ||
env: | ||
XC_OS: "darwin freebsd linux solaris windows" | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-medium) }} | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
|
||
|
@@ -106,3 +112,32 @@ jobs: | |
- run: CC=arm-linux-gnueabi-gcc GOARCH=arm GOARM=5 go build | ||
- run: CC=arm-linux-gnueabihf-gcc GOARCH=arm GOARM=6 go build | ||
- run: CC=aarch64-linux-gnu-gcc GOARCH=arm64 go build | ||
|
||
# This is job is required for branch protection as a required gihub check | ||
# because GitHub actions show up as checks at the job level and not the | ||
# workflow level. This is currently a feature request: | ||
# https://github.com/orgs/community/discussions/12395 | ||
# | ||
# This job must: | ||
# - be placed after the fanout of a workflow so that everything fans back in | ||
# to this job. | ||
# - "need" any job that is part of the fan out / fan in | ||
# - implement the if logic because we have conditional jobs | ||
# (go-test-enteprise) that this job needs and this would potentially get | ||
# skipped if a previous job got skipped. So we use the if clause to make | ||
# sure it does not get skipped. | ||
|
||
build-distros-success: | ||
needs: | ||
- setup | ||
- check-go-mod | ||
- build-386 | ||
- build-amd64 | ||
- build-arm | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
if: | | ||
(always() && ! cancelled()) && | ||
!contains(needs.*.result, 'failure') && | ||
!contains(needs.*.result, 'cancelled') | ||
steps: | ||
- run: echo "build-distros succeeded" |
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