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 flatpak.yml and CI #13

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
types:
- opened
- reopened
- synchronize

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

container:
image: ghcr.io/elementary/flatpak-platform/runtime:6.1
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v2

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

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: elementary/actions/vala-lint@master
17 changes: 17 additions & 0 deletions io.elementary.flatpak-authenticator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
app-id: io.elementary.flatpak-authenticator
runtime: io.elementary.Platform
runtime-version: '6.1'
sdk: io.elementary.Sdk
command: io.elementary.flatpak-authenticator
finish-args:
- '--share=ipc'
- '--share=network'
- '--socket=fallback-x11'
- '--socket=wayland'

modules:
- name: flaptak-authenticator
buildsystem: meson
sources:
- type: dir
path: .