Skip to content

Commit

Permalink
ci: Enable ccruntime-e2e and makefile test on arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Seunguk Shin <[email protected]>
Reviewed-by: Nick Connolly <[email protected]>
Reviewed-by: Tao Xu <[email protected]>
  • Loading branch information
Seunguk Shin committed Jan 21, 2025
1 parent fc492f9 commit 7901248
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ccruntime_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- "tdx"
- "sev"
- "sev-snp"
- "ubuntu-22.04-arm"
exclude:
- runtimeclass: "kata-qemu"
instance: "tdx"
Expand Down Expand Up @@ -70,13 +71,16 @@ jobs:
if [ $RUNNING_INSTANCE = "s390x-large" ]; then
args=""
export pre_install_payload_archs="linux/s390x"
elif [ "$RUNNING_INSTANCE" == "ubuntu-20.04" ] || [ "$RUNNING_INSTANCE" == "ubuntu-22.04" ]; then
elif [[ "$RUNNING_INSTANCE" == "ubuntu-"* ]] || [[ "$RUNNING_INSTANCE" == "arm64-nvidia-gpu" ]]; then
# Remove the pre-installed docker/containerd
sudo apt-get remove docker* containerd* -y
# Use /mnt to store images
sudo rm -Rf /var/lib/docker || true
sudo mkdir /mnt/docker || true
sudo ln -s /mnt/docker /var/lib/docker || true
if [ "$RUNNING_INSTANCE" == "ubuntu-22.04-arm" ] || [ "$RUNNING_INSTANCE" == "arm64-nvidia-gpu" ]; then
export pre_install_payload_archs="linux/arm64"
fi
fi
./run-local.sh -t -r "${{ matrix.runtimeclass }}" "${args}"
env:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/makefile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ on:
jobs:
build:

runs-on: ubuntu-22.04
strategy:
matrix:
instance:
- "ubuntu-22.04"
- "ubuntu-22.04-arm"
runs-on: ${{ matrix.instance }}

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
Expand Down Expand Up @@ -43,13 +48,16 @@ jobs:

envtest:
name: Test APIs using envtest
runs-on: ubuntu-22.04
strategy:
matrix:
instance:
- "ubuntu-22.04"
- "ubuntu-22.04-arm"
version:
- 1.30.x
- 1.31.x
- 1.32.x
runs-on: ${{ matrix.instance }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
Expand Down

0 comments on commit 7901248

Please sign in to comment.