diff --git a/.github/workflows/package-apisix-runtime-deb-ubuntu20.04-openresty-1.21.yml b/.github/workflows/package-apisix-runtime-deb-ubuntu20.04-openresty-1.21.yml index a00d0db83..b21d22f62 100644 --- a/.github/workflows/package-apisix-runtime-deb-ubuntu20.04-openresty-1.21.yml +++ b/.github/workflows/package-apisix-runtime-deb-ubuntu20.04-openresty-1.21.yml @@ -5,7 +5,6 @@ on: jobs: build: - runs-on: ubuntu-latest timeout-minutes: 60 env: BUILD_APISIX_RUNTIME_VERSION: 1.1.2 @@ -13,8 +12,11 @@ jobs: strategy: matrix: platform: - - linux/amd64 - - linux/arm64 + - runner: ubuntu-22.04 + arch: amd64 + - runner: buildjet-2vcpu-ubuntu-2204-arm + arch: arm64 + runs-on: ${{ matrix.platform.runner }} steps: - uses: actions/checkout@v2 with: @@ -33,15 +35,15 @@ jobs: - name: build apisix-runtime deb run: | - if [ "${{ matrix.platform }}" == "linux/arm64" ]; then - make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=arm64v8/ubuntu image_tag=20.04 arch=linux/arm64/v8 + if [ "${{ matrix.platform.arch }}" == "arm64" ]; then + make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=20.04 arch=linux/arm64/v8 else make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=20.04 arch=linux/amd64 fi - name: run ubuntu 20.04 docker and mapping apisix-runtime deb into container run: | - if [ "${{ matrix.platform }}" == "linux/arm64" ]; then + if [ "${{ matrix.platform.arch }}" == "arm64" ]; then docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" --platfrom linux/arm64/v8 docker.io/ubuntu:20.04 /bin/bash else docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" --platfrom linux/amd64 docker.io/ubuntu:20.04 /bin/bash