Wayland exploration #402
Workflow file for this run
This file contains hidden or 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
| name: build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ${{matrix.os}} | |
| env: | |
| DISPLAY: ':99' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| headless: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
| dependencies: sudo apt-get install libxtst-dev libevdev-dev libudev-dev --assume-yes | |
| test: cargo test --verbose --features=serialize,x11 | |
| - os: macos-latest | |
| # TODO: We can't test this on github, we can't set accessibility yet. | |
| test: cargo test --verbose --all-features -- --skip test_listen_and_simulate --skip test_grab | |
| - os: windows-latest | |
| test: cargo test --verbose --all-features | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: CargoFmt | |
| run: rustup component add rustfmt | |
| - name: Dependencies | |
| run: ${{matrix.dependencies}} | |
| - name: Setup headless environment | |
| run: ${{matrix.headless}} | |
| - name: Check formatting | |
| run: | | |
| rustup component add rustfmt | |
| cargo fmt -- --check | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: ${{matrix.test}} | |
| - name: Linter | |
| run: | | |
| rustup component add clippy | |
| cargo clippy --all-features --verbose -- -Dwarnings |