Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Aug 16, 2024
1 parent ef30d14 commit 164042f
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
BUILD_APISIX_RUNTIME_VERSION: 1.1.2
ARCH : amd64
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:
Expand All @@ -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
Expand Down

0 comments on commit 164042f

Please sign in to comment.