Skip to content

Commit

Permalink
Fix ci (#47)
Browse files Browse the repository at this point in the history
* Fix build workflow to show tool versions

* Use dtolnay/rust-toolchain

* Fix to build stable and msrv

* Replace single space char with single quotes instead of double quotes

* Use Swatinem/rust-cache
  • Loading branch information
lusingander committed Sep 8, 2024
1 parent 6f8e882 commit 7c3e9c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,25 @@ env:

jobs:
build:
strategy:
matrix:
versions:
- stable
- '1.79.0' # MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.versions }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Version
run: |
rustc --version
cargo --version
cargo fmt -- --version
cargo clippy -- --version
- name: Format
run: cargo fmt --all -- --check
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion src/keybind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<'de> Deserialize<'de> for KeyBind {
}

fn parse_key_event(raw: &str) -> Result<KeyEvent, String> {
let raw_lower = raw.to_ascii_lowercase().replace(" ", "");
let raw_lower = raw.to_ascii_lowercase().replace(' ', "");
let (remaining, modifiers) = extract_modifiers(&raw_lower);
parse_key_code_with_modifiers(remaining, modifiers)
}
Expand Down

0 comments on commit 7c3e9c4

Please sign in to comment.