Skip to content

Merge pull request #24 from kdwk/dependabot/cargo/chrono-0.4.34 #168

Merge pull request #24 from kdwk/dependabot/cargo/chrono-0.4.34

Merge pull request #24 from kdwk/dependabot/cargo/chrono-0.4.34 #168

Workflow file for this run

on:
push:
branches: [main]
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
strategy:
matrix:
arch: [x86_64]
fail-fast: false
steps:
- uses: actions/checkout@master
- name: Install dependencies
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: spidey.flatpak
manifest-path: build-aux/com.github.kdwk.Spidey.Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}