Skip to content

Commit 675e29c

Browse files
authored
Merge pull request #116 from MightyCreak/flatpak-ci
Add Flatpak CI
2 parents 6ad8038 + b0b6ddf commit 675e29c

File tree

2 files changed

+42
-24
lines changed

2 files changed

+42
-24
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.github/workflows/main.yml

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,46 @@ jobs:
1616
lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
20-
with:
21-
fetch-depth: 0
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
2222

23-
- name: Pylint
24-
uses: cclauss/GitHub-Action-for-pylint@master
25-
with:
26-
args: "pylint src/vcs/"
23+
- name: Pylint
24+
uses: cclauss/GitHub-Action-for-pylint@master
25+
with:
26+
args: "pylint src/vcs/"
2727

28-
build:
28+
meson-build-test:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v2
32-
with:
33-
fetch-depth: 0
34-
35-
- name: Install dependencies
36-
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
37-
38-
- name: Meson build
39-
uses: BSFishy/[email protected]
40-
with:
41-
action: build
42-
43-
- name: Meson test
44-
uses: BSFishy/[email protected]
45-
with:
46-
action: test
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Install dependencies
36+
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
37+
38+
- name: Meson build
39+
uses: BSFishy/[email protected]
40+
with:
41+
action: build
42+
43+
- name: Meson test
44+
uses: BSFishy/[email protected]
45+
with:
46+
action: test
47+
48+
flatpak-build-test:
49+
runs-on: ubuntu-latest
50+
container:
51+
image: bilelmoussaoui/flatpak-github-actions:gnome-40
52+
options: --privileged
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Flatpak builder
56+
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
57+
with:
58+
bundle: "diffuse.flatpak"
59+
manifest-path: "io.github.mightycreak.Diffuse.yml"
60+
cache-key: flatpak-builder-${{ github.sha }}
61+
run-tests: "true"

0 commit comments

Comments
 (0)