Skip to content

Commit

Permalink
Merge pull request #1493 from rolalaro/fix_ci_other_arch
Browse files Browse the repository at this point in the history
Fixing other architectures CI failure due to change of API
  • Loading branch information
fspindle authored Nov 1, 2024
2 parents 2865e3e + 5d62d61 commit ee86cfc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/other-arch-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ jobs:
# - arch: armv6
# distro: bullseye
# target: ARMV6
- arch: armv7
distro: ubuntu_latest
target: ARMV7
endianness: (Little Endian)
#- arch: armv7
# distro: ubuntu:latest
# target: ARMV7
# endianness: (Little Endian)
- arch: aarch64
distro: ubuntu_latest
distro: ubuntu:latest
endianness: (Little Endian)
- arch: riscv64
distro: ubuntu_latest
distro: ubuntu:latest
target: RISC-V
endianness: (Little Endian)
- arch: ppc64le
distro: ubuntu_latest
distro: ubuntu:latest
target: POWER8
endianness: (Little Endian)
- arch: s390x
distro: ubuntu_latest
distro: ubuntu:latest
target: Z13
endianness: (Big Endian)

Expand All @@ -53,11 +53,15 @@ jobs:
uses: actions/checkout@v4

- name: Run on arch
uses: uraimo/run-on-arch-action@v2.7.2
uses: uraimo/run-on-arch-action@v2
# See issue https://github.com/uraimo/run-on-arch-action/issues/155 for the explanation on the weird use of the arch and distro
# that resulted in error
# ERROR: failed to solve: ${arch}/ubuntu:latest: failed to resolve source metadata for docker.io/${arch}/ubuntu:latest: no match for platform in manifest: not found
with:
githubToken: ${{ github.token }}
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
arch: none
distro: none
base_image: "--platform=linux/${{ matrix.arch }} ${{ matrix.distro }}"

run: |
lscpu
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/other-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
# distro: ubuntu20.04
# target: ARMV7
- arch: aarch64
distro: ubuntu_latest
distro: ubuntu:latest
target: ARMV8
endianness: (Little Endian)
# - arch: ppc64le
# distro: ubuntu20.04
# target: POWER8
- arch: s390x
distro: ubuntu_latest
distro: ubuntu:latest
target: Z13
endianness: (Big Endian)

Expand All @@ -48,11 +48,15 @@ jobs:
uses: actions/checkout@v4

- name: Run on arch
uses: uraimo/run-on-arch-action@v2.7.2
uses: uraimo/run-on-arch-action@v2
# See issue https://github.com/uraimo/run-on-arch-action/issues/155 for the explanation on the weird use of the arch and distro
# that resulted in error
# ERROR: failed to solve: ${arch}/ubuntu:latest: failed to resolve source metadata for docker.io/${arch}/ubuntu:latest: no match for platform in manifest: not found
with:
githubToken: ${{ github.token }}
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
arch: none
distro: none
base_image: "--platform=linux/${{ matrix.arch }} ${{ matrix.distro }}"

run: |
lscpu
Expand Down

0 comments on commit ee86cfc

Please sign in to comment.