Skip to content

Commit

Permalink
release-1.8: refactor e2e (#2214)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jan 5, 2023
1 parent ae99c07 commit f1d5369
Show file tree
Hide file tree
Showing 30 changed files with 862 additions and 4,088 deletions.
39 changes: 19 additions & 20 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,47 +15,45 @@ on:
- 'docs/**'
- '**.md'

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

env:
GO_VERSION: '1.17'
GO_VERSION: '1.19'

jobs:
build:
name: Build arm64
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- 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@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:qemu-v5.2.0
platforms: arm64

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Go Build Cache
uses: actions/cache@v2
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
uses: actions/cache@v2
- 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
6 changes: 3 additions & 3 deletions .github/workflows/build-dpdk-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ 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@v2
uses: actions/checkout@v3

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build
run: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build-kube-ovn-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ 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@v2
uses: actions/checkout@v3

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build
run: |
Expand All @@ -25,19 +25,19 @@ 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@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:qemu-v5.2.0
platforms: arm64

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build
run: |
Expand All @@ -56,10 +56,10 @@ 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@v2
uses: actions/checkout@v3

- name: Download image
uses: actions/download-artifact@v2
Expand Down
Loading

0 comments on commit f1d5369

Please sign in to comment.