on: push: branches: [main] pull_request: name: CI jobs: rustfmt: name: Rustfmt runs-on: ubuntu-latest steps: - name: Checkout source uses: actions/checkout@v4 - name: Setup Rust 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 --device=/dev/fuse steps: - name: Install git run: dnf install -y git - name: Checkout source run: | git clone ${{ gitea.server_url }}/${{ gitea.repository }} . 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 ink.unbl.notify.Devel - name: Upload artifact 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