Skip to content

Commit

Permalink
Flatpak: update to latest platform (#166)
Browse files Browse the repository at this point in the history
* Flatpak: update to latest platform

* Update main.yml
  • Loading branch information
danirabbit authored Feb 1, 2023
1 parent d17fc27 commit 66a704a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 12 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,47 @@
---

name: CI

on: [push, pull_request]
on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
flatpak:
name: Flatpak
runs-on: ubuntu-latest

strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false

container:
image: ghcr.io/elementary/flatpak-platform/runtime:6.1
image: ghcr.io/elementary/flatpak-platform/runtime:7.1-${{ matrix.arch }}
options: --privileged

steps:
- uses: actions/checkout@v2
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
with:
bundle: torrential.flatpak
manifest-path: com.github.davidmhewitt.torrential.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU for aarch64 emulation
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v5
with:
bundle: torrential.flatpak
manifest-path: com.github.davidmhewitt.torrential.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
branch: daily
arch: ${{ matrix.arch }}
2 changes: 1 addition & 1 deletion com.github.davidmhewitt.torrential.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app-id: com.github.davidmhewitt.torrential
runtime: io.elementary.Platform
runtime-version: '6.1'
runtime-version: '7.1'
sdk: io.elementary.Sdk
command: com.github.davidmhewitt.torrential
finish-args:
Expand Down

0 comments on commit 66a704a

Please sign in to comment.