Skip to content

Commit

Permalink
ci(runner): use arm runner images instead of qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 27, 2025
1 parent a1d5b7a commit 21540dd
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/push-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ env:

jobs:
get-pom-properties:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'cryostatio' }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -39,25 +39,25 @@ jobs:
image-version: ${{ steps.query-pom.outputs.image-version }}

build-images:
runs-on: ubuntu-latest
name: Build images
needs: [get-pom-properties]
strategy:
matrix:
arch: [amd64, arm64]
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
env:
IMAGE_VERSION: ${{ needs.get-pom-properties.outputs.image-version }}
frontend-cache-name: cache-yarn
name: Build images
permissions:
packages: write
contents: read
steps:
- name: Add CRIU PPA
run: sudo add-apt-repository ppa:criu/ppa && sudo apt update
- name: Install podman 4 and qemu
- name: Install podman 4
run: |
sudo apt update
sudo apt -y satisfy "podman (>= 4.0), qemu-user-static"
sudo apt -y satisfy "podman (>= 4.0)"
- uses: actions/checkout@v4
with:
submodules: true
Expand Down Expand Up @@ -112,16 +112,16 @@ jobs:

unit-test:
name: Run unit tests
runs-on: ubuntu-latest
needs: [get-pom-properties]
strategy:
matrix:
arch: [amd64, arm64]
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
steps:
- name: Install podman 4 and qemu
- name: Install podman 4
run: |
sudo apt update
sudo apt -y satisfy "podman (>= 4.0), qemu-user-static"
sudo apt -y satisfy "podman (>= 4.0)"
- uses: actions/checkout@v4
with:
submodules: true
Expand Down Expand Up @@ -159,22 +159,18 @@ jobs:
integration-test:
name: Run integration tests
runs-on: ubuntu-latest
needs: [build-images]
strategy:
matrix:
arch: [amd64, arm64]
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
env:
CI_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install qemu
run: |
sudo apt update
sudo apt -y satisfy "qemu-user-static"
- uses: actions/setup-java@v4
with:
java-version: '21'
Expand Down Expand Up @@ -207,15 +203,15 @@ jobs:
run: cat target/quarkus.log

publish-manifest:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [get-pom-properties, build-images, unit-test, integration-test]
steps:
- name: Add CRIU PPA
run: sudo add-apt-repository ppa:criu/ppa && sudo apt update
- name: Install podman 4 and qemu
- name: Install podman 4
run: |
sudo apt update
sudo apt -y satisfy "podman (>= 4.0), qemu-user-static"
sudo apt -y satisfy "podman (>= 4.0)"
- name: Download container tarballs
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 21540dd

Please sign in to comment.