Skip to content

fix incorrect dpi scaling on some x11 systems #462

fix incorrect dpi scaling on some x11 systems

fix incorrect dpi scaling on some x11 systems #462

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
rustfmt-clippy:
runs-on: ubuntu-20.04
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions/checkout@v2
- name: Run `cargo fmt`
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run `cargo clippy`
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --features=networking -- -D warnings -A clippy::type_complexity -A clippy::needless_late_init -A clippy::question_mark
build:
needs: rustfmt-clippy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build and run tests (linux/macOS)
if: matrix.os != 'windows-latest'
run: |
env RUSTFLAGS="-C opt-level=0" cargo test --verbose --features=networking
- name: Build and run tests (windows)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
env RUSTFLAGS="-C opt-level=0" cargo test --verbose --features=networking