Files
Notify/.github/workflows/ci.yml
Colin Powell 0588338248
Some checks failed
CI / Rustfmt (push) Successful in 30s
CI / Flatpak (push) Failing after 11m58s
[ci] Fix Flatpak build
2026-03-19 21:37:28 -04:00

49 lines
1.2 KiB
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
- 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
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder xvfb
- name: Add Flathub repo
run: |
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Build Flatpak
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: notify.flatpak
manifest-path: build-aux/com.ranfdev.Notify.Devel.json
repository-name: flathub
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}