Skip to content

Commit

Permalink
gha: Introduce arm64 for tests
Browse files Browse the repository at this point in the history
Introduce arm64 for Linux tests on Github Actions

Signed-off-by: Arnaud Meukam <[email protected]>
  • Loading branch information
ameukam committed Feb 24, 2025
1 parent 5becdbf commit a64f90d
Showing 1 changed file with 44 additions and 28 deletions.
72 changes: 44 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: CI

'on':
"on":
- push
- pull_request

Expand All @@ -13,8 +13,16 @@ permissions:
contents: read

jobs:
build-linux-amd64:
runs-on: ubuntu-24.04
build-linux:
strategy:
matrix:
os: [ubuntu-24.04-arm, ubuntu-latest]
include:
- os: ubuntu-24.04-arm
arch: arm64
- os: ubuntu-latest
arch: x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
Expand All @@ -23,7 +31,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
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
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -33,39 +41,47 @@ jobs:
build-macos-amd64:
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
- 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: 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
- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
make kops examples test
build-windows-amd64:
runs-on: windows-2022
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
- 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: 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
- 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
strategy:
matrix:
os: [ubuntu-24.04-arm, ubuntu-latest]
include:
- os: ubuntu-24.04-arm
arch: arm64
- os: ubuntu-latest
arch: x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
Expand All @@ -74,7 +90,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
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 quick-ci
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand Down

0 comments on commit a64f90d

Please sign in to comment.