permission check troubleshooting utils in frontend and in dev #65
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
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - apps/control/** | |
| - crates/control-tauri/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| pull_request: | |
| branches-ignore: | |
| - "**/graphite-base/**" | |
| paths: | |
| - apps/control/** | |
| - crates/control-tauri/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| jobs: | |
| optimize_ci: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| skip: ${{ steps.check_skip.outputs.skip }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: check_skip | |
| uses: ./.github/actions/graphite_optimizer | |
| with: | |
| graphite_token: ${{ secrets.GRAPHITE_TOKEN }} | |
| control_ci: | |
| needs: optimize_ci | |
| if: needs.optimize_ci.outputs.skip == 'false' | |
| runs-on: depot-macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/pnpm_install | |
| - run: pnpm -F @hypr/control typecheck | |
| - uses: ./.github/actions/install_desktop_deps | |
| with: | |
| target: macos | |
| - uses: ./.github/actions/rust_install | |
| with: | |
| platform: macos | |
| - run: cargo check -p control-tauri | |
| - run: cargo test -p control-tauri | |
| ci: | |
| if: always() | |
| needs: [optimize_ci, control_ci] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: exit 1 | |
| if: needs.optimize_ci.outputs.skip == 'false' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) |