2023-07-16 10:22:04 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rustfmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-07-17 09:46:46 +00:00
|
|
|
- uses: https://github.com/actions-rs/toolchain@v1
|
2023-07-16 10:22:04 +00:00
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
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:
|
2023-07-17 09:46:46 +00:00
|
|
|
image: https://github.com/bilelmoussaoui/flatpak-github-actions:gnome-44
|
2023-07-16 10:22:04 +00:00
|
|
|
options: --privileged
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-07-17 09:46:46 +00:00
|
|
|
- uses: https://github.com/bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
|
2023-07-16 10:22:04 +00:00
|
|
|
with:
|
|
|
|
bundle: gtk-transcription.flatpak
|
|
|
|
manifest-path: build-aux/dev.mnts.Transcription.Devel.json
|
|
|
|
run-tests: true
|
|
|
|
cache-key: flatpak-builder-${{ github.sha }}
|