Skip to content
Merged
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
30 changes: 18 additions & 12 deletions .github/workflows/main.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: CI

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

jobs:
build:

runs-on: ubuntu-latest

container:
image: elementary/docker:unstable

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
apt update
Expand All @@ -25,31 +29,33 @@ jobs:
ninja -C build install

flatpak:

name: Flatpak
runs-on: ubuntu-latest

container:
image: docker.io/bilelmoussaoui/flatpak-github-actions
image: ghcr.io/elementary/flatpak-platform/runtime:daily
options: --privileged

steps:
- name: Checkout
- uses: actions/checkout@v2
- uses: bilelmoussaoui/flatpak-github-actions@master

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

lint:

runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Lint
run: io.elementary.vala-lint -d .
3 changes: 2 additions & 1 deletion io.elementary.code.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app-id: io.elementary.code
runtime: io.elementary.Sdk # The outline plugin requires libvala which is only in the SDK, not the runtime
runtime-version: '0.1.0'
runtime-version: 'daily'
sdk: io.elementary.Sdk
command: io.elementary.code
finish-args:
Expand All @@ -12,6 +12,7 @@ finish-args:

- '--talk-name=org.gtk.vfs.*'
- '--talk-name=org.gnome.SettingsDaemon'
- '--talk-name=org.elementary.Contractor'

- '--metadata=X-DConf=migrate-path=/io/elementary/code/'
cleanup:
Expand Down