amend 31e11b7b: consider window borders as well when reading size #359
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
name: Rust CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
# Note to myself: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#example-adding-configurations | |
include: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
- os: macos-13 # x86_64 | |
target: x86_64-apple-darwin | |
- os: macos-14 # aarch64 (ARM) | |
target: aarch64-apple-darwin | |
- os: windows-latest | |
target: i686-pc-windows-msvc | |
- os: windows-latest | |
target: x86_64-pc-windows-msvc | |
runs-on: ${{ matrix.os }} | |
name: Build and test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Install Ubuntu dependencies | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: export DEBIAN_FRONTEND=noninteractive && sudo apt update && sudo apt install -y librust-alsa-sys-dev | |
- name: Add fake empty dependency | |
shell: bash | |
run: crates/fake-glass.sh | |
- run: cargo build --release --target ${{ matrix.target }} | |
- run: cargo test --target ${{ matrix.target }} |