From 54fae4ba00c17bbb3756d76c7ffb6fe9b65f873d Mon Sep 17 00:00:00 2001 From: "k.koide" Date: Mon, 22 Jul 2024 17:15:14 +0900 Subject: [PATCH] extract platform-wise --- .github/workflows/deb.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index cc54721..556d96c 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -17,7 +17,6 @@ jobs: { "ubuntu": "jammy", "label": "ubuntu2204" }, { "ubuntu": "noble", "label": "ubuntu2404" }, ] - PLATFORM: [ "linux/amd64", "linux/arm64" ] steps: - uses: actions/checkout@v4 @@ -45,12 +44,13 @@ jobs: build-args: | BASE_IMAGE=ubuntu:${{ matrix.DISTRO.ubuntu }} context: . - platforms: ${{ matrix.PLATFORM }} + platforms: linux/amd64,linux/arm64 push: false - - name: Extract deb + - name: Extract deb (AMD64) run: | - docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=${{ matrix.PLATFORM }} iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/" + docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/amd64 iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/" + docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/arm64 iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/" - name: Upload deb uses: actions/upload-artifact@v4