Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiarchitecutre build #50

Merged
merged 5 commits into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 28 additions & 51 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,70 +7,47 @@ on:
name: build-and-prerelease

jobs:
flatpak-release-target:
name: build-flatpak-release-target
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
strategy:
matrix:
target: [ToolboxTuner, ToolboxTuner.Devel, ToolboxTuner.Screenshot]
arch: [x86_64]
include:
- target: ToolboxTuner.Devel
arch: aarch64
# Don't fail the whole workflow if one architecture fails
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3
with:
bundle: toolboxtuner-release.flatpak
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.json
run-tests: true
cache-key: flatpak-builder-release-${{ github.sha }}
upload-artifact: false
- uses: actions/upload-artifact@v4
with:
name: flatpak-release
path: |
*.flatpak
flatpak-screenshot-target:
name: build-flatpak-screenshot-target
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- uses: actions/checkout@v4
# Docker is required by the docker/setup-qemu-action which enables emulation
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
lfs: true
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3
with:
bundle: toolboxtuner-screenshot.flatpak
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Screenshot.json
run-tests: true
cache-key: flatpak-builder-screenshot-${{ github.sha }}
upload-artifact: false
- uses: actions/upload-artifact@v4
with:
name: flatpak-screenshot
path: |
*.flatpak
flatpak-dev-target:
name: build-flatpak-dev-target
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- uses: actions/checkout@v4
with:
lfs: true
platforms: arm64
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3
with:
bundle: toolboxtuner-dev.flatpak
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Devel.json
bundle: ${{ matrix.target }}.${{ matrix.arch }}.flatpak
manifest-path: build-aux/org.kuchelmeister.${{ matrix.target }}.json
run-tests: true
cache-key: flatpak-builder-dev-${{ github.sha }}
cache-key: flatpak-builder-${{ github.sha }}
upload-artifact: false
arch: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: flatpak-dev
name: flatpak-release-${{ matrix.target }}-${{ matrix.arch }}
path: |
*.flatpak
vendor:
Expand All @@ -91,7 +68,7 @@ jobs:
*.sha256sum
publish-prerelease:
name: publish-prerelease
needs: [flatpak-dev-target, vendor]
needs: [flatpak, vendor]
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'main') && github.ref_type == 'branch'
steps:
Expand All @@ -105,7 +82,7 @@ jobs:
automatic_release_tag: dev
title: 'Latest Development Build'
files: |
**/*-dev.flatpak
**/*.Devel.*.flatpak
**/*.tar.gz
**/*.sha256sum

Expand Down
Loading