Skip to content

Commit

Permalink
The arm64 runner images sadly do not contain the same set of packages…
Browse files Browse the repository at this point in the history
… as x86_64.

Workaround actions/partner-runner-images#30
  • Loading branch information
adelton committed Feb 18, 2025
1 parent 6cafad6 commit 01f374c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/actions/install-podman-arm/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Install podman on ubuntu-24.04-arm
runs:
using: composite
steps:
- run: |
sudo apt-get update -y
sudo apt-get install -y podman skopeo
shell: bash -euxo pipefail {0}
9 changes: 9 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- name: Separate git work tree with just the files needed for build
run: git worktree add --no-checkout ../minimize-for-build
- name: Populate with the Dockerfile
Expand Down Expand Up @@ -90,6 +91,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: ./.github/actions/docker-cgroups-ubuntu-22
- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -128,6 +130,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- run: sudo systemctl disable --now docker.service docker.socket
- run: |
cat <<EOT | sudo tee "/etc/apparmor.d/home.runner.bin.rootlesskit"
Expand Down Expand Up @@ -166,6 +169,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: actions/download-artifact@v4
with:
name: freeipa-server-${{ matrix.os }}
Expand Down Expand Up @@ -196,6 +200,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: actions/download-artifact@v4
with:
name: freeipa-server-${{ matrix.os }}
Expand Down Expand Up @@ -264,6 +269,7 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: ./.github/actions/docker-cgroups-ubuntu-22
- uses: actions/download-artifact@v4
with:
Expand All @@ -290,6 +296,7 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: actions/download-artifact@v4
with:
name: freeipa-server-${{ matrix.os }}
Expand All @@ -313,6 +320,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- uses: ./.github/actions/docker-cgroups-ubuntu-22
- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -358,6 +366,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-podman-arm
- name: For RHEL builds, use entitlements
uses: ./.github/actions/podman-entitlement
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run-partial-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
- uses: actions/checkout@v4
- name: Install podman 4.*
uses: ./.github/actions/install-podman-4
if: matrix.docker == 'podman' && inputs.runs-on == 'ubuntu-22.04'
if: matrix.docker == 'podman' && (inputs.runs-on == 'ubuntu-22.04' || inputs.runs-on == 'ubuntu-22.04-arm')
- uses: ./.github/actions/install-podman-arm
if: matrix.docker == 'podman' && inputs.runs-on == 'ubuntu-24.04-arm'
- uses: ./.github/actions/docker-cgroups-ubuntu-22
if: matrix.docker == 'docker'
- name: For RHEL builds, use entitlements
Expand Down

0 comments on commit 01f374c

Please sign in to comment.