Add DPI awareness to fix unecessary scaling #249
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: Nix Build | |
on: | |
push: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
env: | |
GH_CACHE_KEY: 1 | |
jobs: | |
# build: | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# target: [ | |
# #{ pkg: "aarch64-darwin", on: "macos-latest" }, | |
# #{ pkg: "x86_64-darwin", on: "macos-latest" }, | |
# { pkg: "x86_64-linux", on: "ubuntu-latest" }, | |
# #{ pkg: "aarch64-linux", on: "ubuntu-latest" }, | |
# ] | |
# env: [ | |
# {name: "Release", flake: ""}, | |
# {name: "Debug", flake: "_debug"}, | |
# ] | |
# name: ${{matrix.target.pkg}} ${{matrix.env.name}} | |
# if: github.event.pull_request.draft != true | |
# runs-on: ${{matrix.target.on}} | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/cache@v4 | |
# id: cache | |
# with: | |
# path: /nix/store | |
# key: NIX-${{matrix.target.pkg}}-${{matrix.env.name}}-${{ env.GH_CACHE_KEY }} | |
# - uses: cachix/install-nix-action@v20 | |
# with: | |
# github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
# - run: nix build ".#platform_${{matrix.target.pkg}}${{matrix.env.flake}}" | |
check: | |
name: Check | |
if: github.event.pull_request.draft != true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix flake check |