-
-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (53 loc) · 1.54 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [stable, unstable, development-target]
container:
image: ghcr.io/elementary/docker:${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
apt update
apt install -y libadwaita-1-dev libfwupd-dev libgranite-7-dev libgtk-4-dev libgtop2-dev libgudev-1.0-dev libudisks2-dev libswitchboard-3-dev libappstream-dev libpackagekit-glib2-dev libpolkit-gobject-1-dev libsoup-3.0-dev meson valac
- name: Build
env:
DESTDIR: out
run: |
meson build
ninja -C build
ninja -C build install
fedora:
runs-on: ubuntu-latest
container:
# Rawhide because we want to test Fwupd 2.0.0
image: fedora:rawhide
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
dnf install -y libadwaita-devel fwupd-devel granite-7-devel gtk4-devel libgtop2-devel libgudev-devel libudisks2-devel appstream-devel PackageKit-glib-devel polkit-devel libsoup3-devel meson valac
- name: Build
env:
DESTDIR: out
run: |
meson build
ninja -C build install
lint:
runs-on: ubuntu-latest
container:
image: valalang/lint
steps:
- uses: actions/checkout@v4
- name: Lint
run: io.elementary.vala-lint -d .