Fix desktop control rail scrolling (#58) #113
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality: | |
| name: Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11.23.0 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 26.7.0 | |
| cache: pnpm | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.13" | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm check | |
| - run: pnpm site:build | |
| package-delivery: | |
| name: Package delivery limits | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 26.7.0 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.13" | |
| - name: Audit every publishable package | |
| run: python3 scripts/audit_package_sizes.py | |
| changes: | |
| name: Select affected fonts | |
| runs-on: ubuntu-latest | |
| outputs: | |
| fonts: ${{ steps.select.outputs.fonts }} | |
| count: ${{ steps.select.outputs.count }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Select fonts | |
| id: select | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
| run: python3 scripts/select_ci_fonts.py --base "$BASE_SHA" --head "$HEAD_SHA" --github-output >> "$GITHUB_OUTPUT" | |
| build: | |
| name: Build ${{ matrix.font.label }} | |
| needs: [quality, package-delivery, changes] | |
| if: needs.changes.outputs.count != '0' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| font: ${{ fromJSON(needs.changes.outputs.fonts) }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.13" | |
| - name: Build and audit ${{ matrix.font.label }} | |
| env: | |
| BUILD_COMMAND: ${{ matrix.font.command }} | |
| run: "$BUILD_COMMAND" | |
| - name: Check generated files | |
| run: git diff --exit-code | |
| - name: Audit package delivery size | |
| run: python3 scripts/audit_package_sizes.py "${{ matrix.font.id }}" | |
| - name: Preserve Hanamin drift for diagnosis | |
| if: failure() && matrix.font.id == 'hanamin' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: hanamin-generated-drift | |
| path: packages/hanamin/dist/HanaMinA/HanaMin.Supplemental-Symbols-and-Pictographs.woff2 |