|
6 | 6 | pull_request: |
7 | 7 | workflow_dispatch: |
8 | 8 |
|
| 9 | +concurrency: |
| 10 | + group: ${{ github.head_ref || github.ref_name }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
9 | 13 | jobs: |
10 | 14 | typecheck: |
11 | 15 | name: Typecheck |
@@ -33,21 +37,38 @@ jobs: |
33 | 37 |
|
34 | 38 | clippy: |
35 | 39 | name: Clippy |
36 | | - runs-on: ubuntu-latest |
| 40 | + runs-on: macos-latest |
37 | 41 | permissions: |
38 | 42 | contents: read |
39 | 43 | steps: |
40 | 44 | - name: Checkout repository |
41 | 45 | uses: actions/checkout@v4 |
42 | 46 |
|
43 | | - - uses: ./.github/actions/setup-js |
| 47 | + - name: Rust setup |
| 48 | + uses: dtolnay/rust-toolchain@stable |
| 49 | + with: |
| 50 | + targets: ${{ matrix.settings.target }} |
| 51 | + |
| 52 | + - name: Rust cache |
| 53 | + uses: swatinem/rust-cache@v2 |
| 54 | + with: |
| 55 | + shared-key: ${{ matrix.settings.target }} |
44 | 56 |
|
45 | | - - uses: ./.github/actions/setup-rust |
| 57 | + - name: Setup pnpm |
| 58 | + uses: pnpm/action-setup@v4 |
46 | 59 | with: |
47 | | - target: x86_64-unknown-linux-gnu |
| 60 | + version: 9.8.0 |
48 | 61 |
|
49 | | - - name: Install desktop deps |
50 | | - uses: ./.github/actions/install-desktop-deps |
| 62 | + - name: Setup Node.js |
| 63 | + uses: actions/setup-node@v4 |
| 64 | + with: |
| 65 | + node-version: "20" |
| 66 | + cache: pnpm |
| 67 | + |
| 68 | + - name: Run setup |
| 69 | + run: | |
| 70 | + touch .env |
| 71 | + pnpm cap-setup |
51 | 72 |
|
52 | 73 | - name: Run Clippy |
53 | 74 | uses: actions-rs-plus/clippy-check@v2 |
|
62 | 83 | settings: |
63 | 84 | - target: aarch64-apple-darwin |
64 | 85 | runner: macos-latest |
65 | | - arch: aarch64 |
66 | 86 | - target: x86_64-pc-windows-msvc |
67 | 87 | runner: windows-latest |
68 | | - arch: x86_64 |
69 | 88 | runs-on: ${{ matrix.settings.runner }} |
70 | 89 | steps: |
71 | 90 | - name: Checkout repository |
@@ -120,8 +139,8 @@ jobs: |
120 | 139 | working-directory: apps/desktop |
121 | 140 | run: | |
122 | 141 | pnpm -w cap-setup |
123 | | - pnpm tauri build --debug |
| 142 | + pnpm tauri build --debug --target ${{ matrix.settings.target }} |
124 | 143 | env: |
125 | 144 | # https://github.com/tauri-apps/tauri-action/issues/740 |
126 | 145 | CI: false |
127 | | - RUST_ARCH: ${{ matrix.settings.arch }} |
| 146 | + RUST_TARGET_TRIPLE: ${{ matrix.settings.target }} |
0 commit comments