Skip to content

Commit

Permalink
Modify build-distros to use medium runners (#16773)
Browse files Browse the repository at this point in the history
* go-tests workflow

* add test splitting to go-tests

* fix re-reun fails report path

* fix re-reun fails report path another place

* fixing tests for32bit and race

* use script file to generate runners

* fixing run path

* add checkout

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* passing runs-on

* setting up runs-on as a parameter to check-go-mod

* trying mediums

* adding in script

* fixing runs-on to be parameter

* fixing merge conflict

* changing to on push

* removing whitespace

* go-tests workflow

* add test splitting to go-tests

* fix re-reun fails report path

* fix re-reun fails report path another place

* fixing tests for32bit and race

* use script file to generate runners

* fixing run path

* add checkout

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* Apply suggestions from code review

Co-authored-by: Dan Bond <[email protected]>

* passing runs-on

* setting up runs-on as a parameter to check-go-mod

* changing back to on pull_request

---------

Co-authored-by: Dan Bond <[email protected]>
  • Loading branch information
jmurret and loshz committed Mar 28, 2023
1 parent 9302ebc commit 0f55035
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
runs-on: ${{ needs.setup.outputs.compute-medium }}

build-386:
needs: check-go-mod
needs:
- setup
- check-go-mod
env:
XC_OS: "freebsd linux windows"
runs-on: ubuntu-22.04
runs-on: ${{ fromJSON(needs.setup.outputs.compute-medium) }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected]
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected]
Expand All @@ -46,10 +48,12 @@ jobs:
done
build-amd64:
needs: check-go-mod
needs:
- setup
- check-go-mod
env:
XC_OS: "darwin freebsd linux solaris windows"
runs-on: ubuntu-22.04
runs-on: ${{ fromJSON(needs.setup.outputs.compute-medium) }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected]
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected]
Expand All @@ -62,8 +66,10 @@ jobs:
done
build-arm:
needs: check-go-mod
runs-on: ubuntu-22.04
needs:
- setup
- check-go-mod
runs-on: ${{ fromJSON(needs.setup.outputs.compute-medium) }}
env:
CGO_ENABLED: 1
GOOS: linux
Expand Down

0 comments on commit 0f55035

Please sign in to comment.