Skip to content

Commit

Permalink
Use ARM64 runners for Debian and RPM packaging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Sep 17, 2024
1 parent 3fe31a7 commit 165707c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 32 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ env:
ENTERPRISE: 0

on:
push:
branches:
- 'stable-*'
- 'feature/*'
pull_request:
branches:
- 'stable-*'
- 'feature/*'
push: {}
pull_request: {}

jobs:
define-matrix:
Expand All @@ -27,29 +21,30 @@ jobs:
run: echo "distros=[$(awk -F= '/DEFAULT_DISTROS/{print $2}' packaging/debian/internal/lib/distro_info.sh | sed -e 's/ /", "/g')]" >> "$GITHUB_OUTPUT"

test:
name: "Test ${{ matrix.distro }} ${{ matrix.arch }} packages"
name: "Test ${{ matrix.distro }} ${{ matrix.arch.name }} packages"
needs: define-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: ${{ fromJSON(needs.define-matrix.outputs.distros) }}
arch:
- amd64
- arm64
- name: amd64
runner: ubuntu-24.04
- name: arm64
runner: passenger-ubuntu-24.04-arm64-4cpu
runs-on: ${{ matrix.arch.runner }}
env:
WORKSPACE: ${{ github.workspace }}
ARCHITECTURE: ${{ matrix.arch }}
CACHE_DIR: ${{ github.workspace }}/cache/debian-test/${{ matrix.distro }}-${{ matrix.arch }}
ARCHITECTURE: ${{ matrix.arch.name }}
CACHE_DIR: ${{ github.workspace }}/cache/debian-test/${{ matrix.distro }}-${{ matrix.arch.name }}
DISTRIBUTION: ${{ matrix.distro }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: ./dev/ci/tests/debian/run
- uses: actions/upload-artifact@v4
with:
name: debian-${{ matrix.distro }}-${{ matrix.arch }}
name: debian-${{ matrix.distro }}-${{ matrix.arch.name }}
path: 'output/${{ matrix.distro }}/*'
27 changes: 11 additions & 16 deletions .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ env:
ENTERPRISE: 0

on:
push:
branches:
- 'stable-*'
- 'feature/*'
pull_request:
branches:
- 'stable-*'
- 'feature/*'
push: {}
pull_request: {}

jobs:
define-matrix:
Expand All @@ -27,29 +21,30 @@ jobs:
run: echo "distros=[$(awk -F= '/DEFAULT_DISTROS/{print $2}' packaging/rpm/internal/lib/distro_info.sh | sed -e 's/ /", "/g')]" >> "$GITHUB_OUTPUT"

test:
name: "Test ${{ matrix.distro }} ${{ matrix.arch }} packages"
name: "Test ${{ matrix.distro }} ${{ matrix.arch.name }} packages"
needs: define-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: ${{ fromJSON(needs.define-matrix.outputs.distros) }}
arch:
- x86_64
- aarch64
- name: amd64
runner: ubuntu-24.04
- name: arm64
runner: passenger-ubuntu-24.04-arm64-4cpu
runs-on: ${{ matrix.arch.runner }}
env:
WORKSPACE: ${{ github.workspace }}
ARCHITECTURE: ${{ matrix.arch }}
CACHE_DIR: ${{ github.workspace }}/cache/rpm-test/${{ matrix.distro }}-${{ matrix.arch }}
ARCHITECTURE: ${{ matrix.arch.name }}
CACHE_DIR: ${{ github.workspace }}/cache/rpm-test/${{ matrix.distro }}-${{ matrix.arch.name }}
DISTRIBUTION: ${{ matrix.distro }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: ./dev/ci/tests/rpm/run
- uses: actions/upload-artifact@v4
with:
name: rpm-${{ matrix.distro }}-${{ matrix.arch }}
name: rpm-${{ matrix.distro }}-${{ matrix.arch.name }}
path: 'output/${{ matrix.distro }}/*'

0 comments on commit 165707c

Please sign in to comment.