-
-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (46 loc) · 1.34 KB
/
ci.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
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
checks:
name: Checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# FIXME uncomment when we don't --skip ui_files anymore
# - name: Download dependencies
# run: sudo apt -y install libgtk-4-dev
- name: Run checks.py
run: curl https://raw.githubusercontent.com/SeaDve/scripts/main/checks.py | python - --verbose --skip rustfmt typos ui_files
rustfmt:
name: Rustfmt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
- name: Run cargo fmt
run: cargo fmt --all -- --check
typos:
name: Typos
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check for typos
uses: crate-ci/typos@master
flatpak:
name: Flatpak
runs-on: ubuntu-22.04
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v3
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: mousai.flatpak
manifest-path: build-aux/io.github.seadve.Mousai.Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}