Skip to content

Commit

Permalink
update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
13hannes11 committed Jul 10, 2024
1 parent 9063d4f commit ac20bc3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 3 additions & 16 deletions .github/workflows/ci.yml → .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
on:
push:
branches:
- main
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

flatpak:
name: Flatpak-prerelease
runs-on: ubuntu-latest
Expand Down Expand Up @@ -79,3 +65,4 @@ jobs:
**/*.tar.gz
**/*.sha256sum
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "tagged-release"
on:
push:
tags:
- "v[0-9]+.0-9]+.0-9]+"
- "v*"
jobs:
flatpak:
name: Flatpak
Expand Down

0 comments on commit ac20bc3

Please sign in to comment.