Skip to content

Commit

Permalink
Test appimage multiarch build
Browse files Browse the repository at this point in the history
  • Loading branch information
davnotdev committed Jul 13, 2024
1 parent 3dedca4 commit e86fe3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,29 @@ on:
jobs:
appimage:
name: Build AppImage
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
container: docker
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: Linux
arch:
- x86_64
- os: ubuntu-latest
arch:
- aarch64
steps:
- uses: actions/checkout@v4
- name: Build AppImage
run: |
docker build -t appimage-builder . -f burrow-gtk/build-aux/Dockerfile
docker build -t appimage-builder --build-arg="ARCHITECTURE=${{ matrix.arch }}" . -f burrow-gtk/build-aux/Dockerfile
docker create --name temp appimage-builder
docker cp temp:/app/burrow-gtk/build-appimage/Burrow-x86_64.AppImage .
docker rm temp
- uses: actions/upload-artifact@v4
name: Upload to GitHub
with:
name: AppImage
path: Burrow-x86_64.AppImage
path: Burrow-${{ matrix.arch }}.AppImage
4 changes: 3 additions & 1 deletion burrow-gtk/build-aux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM fedora:39

ARG ARCHITECTURE

ENV DEBIAN_FRONTEND=noninteractive

RUN set -eux && \
Expand All @@ -15,6 +17,6 @@ COPY . /app
ENV SQLITE3_STATIC=1

RUN cd /app/burrow-gtk/ && \
./build-aux/build_appimage.sh
ARCHITECTURE=$ARCHITECTURE ./build-aux/build_appimage.sh


0 comments on commit e86fe3d

Please sign in to comment.