-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (31 loc) · 958 Bytes
/
build-n-test.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
name: Build & Test
on:
push:
branches: [ v2 ]
pull_request:
branches: [ v2 ]
jobs:
build-n-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install meson build-essential valac libadwaita-1-dev appstream-util desktop-file-utils gettext
- name: Configure
run: meson setup build
- name: Build
run: ninja -C build
- name: Test
run: ninja -C build test
flatpak-build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install flatpak-builder
run: sudo apt-get install flatpak-builder
- name: Add Flathub repository
run: sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Install GNOME SDK & Platform
run: sudo flatpak install org.gnome.Sdk//45 org.gnome.Platform//45 -y
- name: Build
run: dev-scripts/build.sh