mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-15 20:03:57 +02:00
ci: set correct arch for rootfs tests
With the commit 01e5cfc "CI: Add target/arch tags (no suffix) for
snapshot images"[1] the os/platform is set for all images, which is usually
different from what the GitHub action runner uses (x86). The Docker
deamon still tries to fetch the x86 version and fails.
This commit explicitly sets the fitting arch.
[1]: 01e5cfccd7
Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
parent
a60a0d0730
commit
d359fa04ed
4
.github/workflows/multi-arch-test-build.yml
vendored
4
.github/workflows/multi-arch-test-build.yml
vendored
|
@ -196,11 +196,11 @@ jobs:
|
||||||
- name: Build Docker container
|
- name: Build Docker container
|
||||||
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
|
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
|
||||||
run: |
|
run: |
|
||||||
docker build -t test-container --build-arg ARCH .github/workflows/
|
docker build --platform linux/${{ matrix.arch }} -t test-container --build-arg ARCH .github/workflows/
|
||||||
env:
|
env:
|
||||||
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
|
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
|
||||||
|
|
||||||
- name: Test via Docker container
|
- name: Test via Docker container
|
||||||
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
|
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $GITHUB_WORKSPACE:/ci test-container
|
docker run --platform linux/${{ matrix.arch }} --rm -v $GITHUB_WORKSPACE:/ci test-container
|
||||||
|
|
Loading…
Reference in New Issue
Block a user