Skip to content

Commit

Permalink
release-1.10: refactor e2e (#2213)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jan 5, 2023
1 parent b2901e8 commit 6a9b2d8
Show file tree
Hide file tree
Showing 126 changed files with 851 additions and 15,046 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/build-arm64-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- master
- release-*
paths-ignore:
- 'docs/**'
- '**.md'
Expand All @@ -14,24 +15,25 @@ on:
- 'docs/**'
- '**.md'

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
GO_VERSION: '1.18'
GO_VERSION: '1.19'

jobs:
build:
name: Build arm64
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '${{ env.GO_VERSION }}'
check-latest: true
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
Expand All @@ -40,21 +42,17 @@ jobs:
- name: Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Go Build Cache
uses: actions/cache@v3
with:
path: /home/runner/.cache/go-build
key: ${{ runner.os }}-arm64-go-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-arm64-go-build-
- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"

- name: Go Mod Cache
- name: Go Cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-arm64-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-arm64-go-
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-${{ env.GO_FULL_VER }}-arm64-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-${{ env.GO_FULL_VER }}-arm64-

- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-dpdk-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch
jobs:
build:
name: Build DPDK
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-kube-ovn-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch
jobs:
build-amd64:
name: Build AMD64
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand All @@ -25,7 +25,7 @@ jobs:

build-arm64:
name: Build ARM64
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- build-arm64
- build-amd64
name: push
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down

0 comments on commit 6a9b2d8

Please sign in to comment.