Skip to content

Commit c52e66a

Browse files
authored
Create ci.yml
1 parent e9ac456 commit c52e66a

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
3+
name: CI
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
jobs:
13+
flatpak:
14+
name: Flatpak
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
arch: [x86_64, aarch64]
20+
# Don't fail the whole workflow if one architecture fails
21+
fail-fast: false
22+
23+
container:
24+
image: ghcr.io/elementary/flatpak-platform/runtime:8-${{ matrix.arch }}
25+
options: --privileged
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Set up QEMU for aarch64 emulation
32+
if: ${{ matrix.arch != 'x86_64' }}
33+
uses: docker/setup-qemu-action@v3
34+
with:
35+
platforms: arm64
36+
37+
- name: Install Rust SDK extension
38+
run: |
39+
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
40+
flatpak install -y --arch=${{matrix.arch}} org.freedesktop.Sdk.Extension.rust-stable//23.08
41+
42+
- name: Build
43+
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
44+
with:
45+
bundle: camera.flatpak
46+
manifest-path: io.github.ellie_commons.tomato.yml
47+
run-tests: true
48+
repository-name: appcenter
49+
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
50+
cache-key: "flatpak-builder-${{ github.sha }}"
51+
branch: daily
52+
arch: ${{ matrix.arch }}
53+
54+
lint:
55+
name: Lint
56+
runs-on: ubuntu-latest
57+
58+
container:
59+
image: valalang/lint
60+
61+
steps:
62+
- name: Checkout
63+
uses: actions/checkout@v4
64+
65+
- name: Lint
66+
run: io.elementary.vala-lint -d .

0 commit comments

Comments
 (0)