-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (46 loc) · 1.51 KB
/
main.yml
File metadata and controls
47 lines (46 loc) · 1.51 KB
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
name: Build project
on:
push:
branches:
- main
pull_request:
jobs:
build:
env:
RUST_LOG: debug
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Update apt cache
run: sudo apt update
- name: Install system dependencies
run: |
sudo apt install -y --no-install-recommends \
curl git build-essential \
libgtk-4-dev gettext libdbus-1-dev libssl-dev libudev-dev \
libxml2-utils desktop-file-utils \
python3-pip ninja-build
- name: Install Meson
run: |
# Newer version needed for --interactive flag needed below
python3 -m pip install --user -v 'meson==1.5.0'
- name: Setup meson project
run: meson setup build
- name: Build
run: ninja -C build
- name: Test
# We have to use the --interactive flag because of some
# weird issue with meson hanging after cargo exits due to the TestDBus.
# Probably has to do with forking the test processes.
run: meson test --interactive
working-directory: build/
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Check clippy recommendations
run: cargo clippy --manifest-path xyz-iinuwa-credential-manager-portal-gtk/Cargo.toml --target-dir build/xyz-iinuwa-credential-manager-portal-gtk/src
- name: Check formatting
run: cargo fmt --check
working-directory: xyz-iinuwa-credential-manager-portal-gtk