update workflow files

This commit is contained in:
2024-07-10 23:51:23 +02:00
parent 9063d4ff75
commit ac20bc3c01
3 changed files with 26 additions and 17 deletions

22
.github/workflows/linting.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
on:
push:
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
- name: Run cargo fmt
run: cargo fmt --all -- --check

View File

@@ -1,26 +1,12 @@
on: on:
push: push:
branches:
- main
pull_request: pull_request:
name: CI name: CI
jobs: jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
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: flatpak:
name: Flatpak-prerelease name: Flatpak-prerelease
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -79,3 +65,4 @@ jobs:
**/*.tar.gz **/*.tar.gz
**/*.sha256sum **/*.sha256sum

View File

@@ -3,7 +3,7 @@ name: "tagged-release"
on: on:
push: push:
tags: tags:
- "v[0-9]+.0-9]+.0-9]+" - "v*"
jobs: jobs:
flatpak: flatpak:
name: Flatpak name: Flatpak