mod-manager/.github/workflows/ci.yml
Tine Jozelj 33b6f9b0e3
Some checks failed
CI / Rustfmt (push) Failing after 58s
CI / Flatpak (push) Failing after 7m32s
ci: try to make it work
2024-01-27 10:20:37 +01:00

40 lines
1,023 B
YAML

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
- run: sudo apt install meson ninja-build
- name: Meson Setup
run: meson setup build -Dprofile=development
- name: Run cargo fmt
run: cargo fmt --all -- --check
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
steps:
- run: sudo dnf install -y nodejs
- 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 }}