This repository has been archived by the owner on Feb 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (56 loc) · 1.51 KB
/
CI-push.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
64
65
66
67
68
69
70
71
72
73
74
name: CI Auto Update
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
lint-vala:
name: Lint vala files
runs-on: ubuntu-latest
container:
image: valalang/lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Lint Vala
run: io.elementary.vala-lint -d .
checkers:
name: Run checkers
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: Install git on container
run: |
apt-get update
apt-get install -y git python3.12
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run indentation checker
run: python3.12 ./vala-checkers/indentation_checker.py .
- name: Run empty lines checker
run: python3.12 ./vala-checkers/empty_lines_checker.py .
test-build:
name: Test Build
runs-on: ubuntu-latest
needs:
- checkers
- lint-vala
container:
image: ubuntu:latest
steps:
- name: Install libs on container
run: |
apt-get update
apt-get install -y git python3.12 valac meson ninja-build gir1.2-glib-2.0-dev libglib2.0-dev gobject-introspection
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup
run: meson setup _build -Dprefix=/usr
- name: Build
run: meson compile -C _build
- name: Test
run: meson test -C _build