Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(runner): use arm runner images instead of qemu #786

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading