Fix Keysym names for named Keysyms and test them agains xkbcommon #1
Workflow file for this run
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
# SPDX-License-Identifier: MIT OR Apache-2.0 OR Zlib | |
# Copyright 2022-2023 John Nunley | |
# | |
# Licensed under the Apache License, Version 2.0, the MIT License, and | |
# the Zlib license ("the Licenses"), you may not use this file except in | |
# compliance with one of the the Licenses, at your option. You may obtain | |
# a copy of the Licenses at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# http://opensource.org/licenses/MIT | |
# http://opensource.org/licenses/Zlib | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the Licenses is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the Licenses for the specific language governing permissions and | |
# limitations under the Licenses. | |
name: Test | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: -Dwarnings | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.58.1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -q -y | |
sudo apt-get upgrade -y | |
sudo apt-get install -y libxkbcommon-dev | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run the tests | |
run: cargo test -- --include-ignored | |