Skip to content

Commit

Permalink
reform
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 22, 2024
1 parent 8befb52 commit 5ee1d4a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
{ "ubuntu": "jammy", "label": "ubuntu2204" },
{ "ubuntu": "noble", "label": "ubuntu2404" },
]
PLATFORM: [ "amd64" ]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,19 +45,16 @@ jobs:
build-args: |
BASE_IMAGE=ubuntu:${{ matrix.DISTRO.ubuntu }}
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/${{ matrix.PLATFORM }}
push: true

- name: Extract deb (AMD64)
run: docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/amd64 koide3/iridescence:${{ matrix.DISTRO.ubuntu }} /bin/bash -c "cp /root/iridescence/build/*.deb /output/"

- name: Extract deb (ARM64)
run: docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/arm64 koide3/iridescence:${{ matrix.DISTRO.ubuntu }} /bin/bash -c "cp /root/iridescence/build/*.deb /output/"
- name: Extract deb
run: docker run -v ${{github.workspace}}/deb/${{ matrix.DISTRO.label }}:/output --platform=linux/${{ matrix.PLATFORM }} koide3/iridescence:${{ matrix.DISTRO.ubuntu }} /bin/bash -c "cp /root/iridescence/build/*.deb /output/"

- name: Upload deb
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.DISTRO.label }}
name: ${{ matrix.DISTRO.label }}.${{ matrix.PLATFORM }}
path: ${{github.workspace}}/${{ matrix.DISTRO.label }}

ppa:
Expand Down

0 comments on commit 5ee1d4a

Please sign in to comment.