Files
Notify/.github/workflows/ci.yml
Colin Powell bd943bd070
Some checks failed
CI / Rustfmt (push) Successful in 29s
CI / flatpak (push) Failing after 2s
[ci] Target Gnome 48 and fix Flatpak builder
2026-03-19 22:05:05 -04:00

65 lines
1.6 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:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- name: Install git
run: |
sudo apt-get install -y git
- name: Checkout source
run: |
git clone ${GITEA_SERVER_URL}/${GITEA_REPOSITORY}.git .
git checkout ${GITEA_SHA}
- name: Build Flatpak
run: |
xvfb-run --auto-servernum \
flatpak-builder \
--repo=repo \
--force-clean \
--install-deps-from=flathub \
--default-branch=master \
--arch=x86_64 \
--ccache \
build-dir \
build-aux/com.ranfdev.Notify.Devel.json
- name: Bundle Flatpak
run: |
flatpak build-bundle repo notify.flatpak com.ranfdev.Notify.Devel
- name: Upload artifact (Gitea Packages)
run: |
curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-F "file=@notify.flatpak" \
${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/notify/latest/notify.flatpak