-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GitHub CI: Fix Rust caching * GitHub CI: Fix MSRV build * GitHub CI: Enable manual workflow dispatch * GitHub CI: Remove obsolete workspace check and rename workflow * Update pre-commit hooks
- Loading branch information
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | ||
|
||
# Same as file name | ||
name: pre-commit | ||
|
||
permissions: | ||
|
@@ -10,14 +11,15 @@ on: | |
push: | ||
branches: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
pre-commit: | ||
name: Detecting code style issues | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install ALSA and Jack dependencies | ||
run: sudo apt install alsa libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev | ||
|
@@ -41,8 +43,8 @@ jobs: | |
- name: Cache Rust toolchain and build artifacts | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
# Distinguished by the action name to avoid sharing across different actions! | ||
shared-key: "pre-commit" | ||
# The cache should not be shared between different workflows and jobs. | ||
shared-key: ${{ github.workflow }}-${{ github.job }} | ||
|
||
- name: Detect code style issues (push) | ||
uses: pre-commit/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters