mirror of https://github.com/kubernetes/kops.git
Merge pull request #17286 from ameukam/gha-matrix-os
gha: Introduce arm64 for tests
This commit is contained in:
commit
1f58f00cc8
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
'on':
|
"on":
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
|
|
@ -13,8 +13,18 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux-amd64:
|
build-linux:
|
||||||
runs-on: ubuntu-24.04
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- name: Linux-amd64
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
arch: amd64
|
||||||
|
- name: Linux-arm64
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
arch: arm64
|
||||||
|
name: build-linux-${{ matrix.os.arch }}
|
||||||
|
runs-on: ${{ matrix.os.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
|
|
@ -23,7 +33,7 @@ jobs:
|
||||||
- name: Set up go
|
- name: Set up go
|
||||||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
||||||
with:
|
with:
|
||||||
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
|
go-version-file: "${{ env.GOPATH }}/src/k8s.io/kops/go.mod"
|
||||||
|
|
||||||
- name: make all examples test
|
- name: make all examples test
|
||||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
|
|
@ -33,39 +43,22 @@ jobs:
|
||||||
build-macos-amd64:
|
build-macos-amd64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
|
|
||||||
- name: Set up go
|
- name: Set up go
|
||||||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
||||||
with:
|
with:
|
||||||
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
|
go-version-file: "${{ env.GOPATH }}/src/k8s.io/kops/go.mod"
|
||||||
|
|
||||||
- name: make kops examples test
|
- name: make kops examples test
|
||||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
run: |
|
run: |
|
||||||
make kops examples test
|
make kops examples test
|
||||||
|
|
||||||
build-windows-amd64:
|
build-windows-amd64:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
||||||
with:
|
|
||||||
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
|
||||||
|
|
||||||
- name: Set up go
|
|
||||||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
|
||||||
with:
|
|
||||||
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
|
|
||||||
|
|
||||||
- name: make kops examples test
|
|
||||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
|
||||||
run: |
|
|
||||||
make kops examples test-windows
|
|
||||||
|
|
||||||
verify:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
|
|
@ -74,7 +67,34 @@ jobs:
|
||||||
- name: Set up go
|
- name: Set up go
|
||||||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
||||||
with:
|
with:
|
||||||
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
|
go-version-file: "${{ env.GOPATH }}/src/k8s.io/kops/go.mod"
|
||||||
|
|
||||||
|
- name: make kops examples test
|
||||||
|
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
|
run: |
|
||||||
|
make kops examples test-windows
|
||||||
|
|
||||||
|
verify:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- name: Linux-amd64
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
arch: amd64
|
||||||
|
- name: Linux-arm64
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
arch: arm64
|
||||||
|
name: verify-${{ matrix.os.arch }}
|
||||||
|
runs-on: ${{ matrix.os.runs-on }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
with:
|
||||||
|
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
|
|
||||||
|
- name: Set up go
|
||||||
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
||||||
|
with:
|
||||||
|
go-version-file: "${{ env.GOPATH }}/src/k8s.io/kops/go.mod"
|
||||||
|
|
||||||
- name: make quick-ci
|
- name: make quick-ci
|
||||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue