2023-12-21 09:38:30 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rustfmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
2024-01-27 09:20:37 +00:00
|
|
|
- run: sudo apt install meson ninja-build
|
2024-01-27 08:53:13 +00:00
|
|
|
- name: Meson Setup
|
|
|
|
run: meson setup build -Dprofile=development
|
2023-12-21 09:38:30 +00:00
|
|
|
- name: Run cargo fmt
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
|
|
|
|
flatpak:
|
|
|
|
name: Flatpak
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2024-01-27 09:20:37 +00:00
|
|
|
image: bilelmoussaoui/flatpak-github-actions:gnome-45
|
2023-12-21 09:38:30 +00:00
|
|
|
options: --privileged
|
|
|
|
steps:
|
2024-01-27 09:20:37 +00:00
|
|
|
- run: sudo dnf install -y nodejs
|
2023-12-21 09:38:30 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
|
|
|
|
with:
|
|
|
|
bundle: mod-manager.flatpak
|
|
|
|
manifest-path: build-aux/dev.mnts.ModManager.Devel.json
|
|
|
|
run-tests: true
|
|
|
|
cache-key: flatpak-builder-${{ github.sha }}
|