forked from zoeyfyi/TeX-Match
-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (51 loc) · 1.7 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
52
53
54
55
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
- name: Run cargo fmt
run: cargo fmt --all -- --check
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Add Flathub Beta remote
run: |
flatpak --user remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install --user -y flathub-beta org.freedesktop.Sdk.Extension.rust-stable//24.08beta org.freedesktop.Sdk.Extension.llvm18//24.08beta
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: Hieroglyphic.flatpak
# repository-name: flathub-beta
manifest-path: build-aux/io.github.finefindus.Hieroglyphic.Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}
spell_check:
name: Spell Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python Dependencies
run: pip install codespell
- name: Run spellchecker
run: codespell -S po,_build,.git,.flatpak,_builddir,build,target -L crate,rouge,vermillion,oint