Showing the changes to .github (1 of 6 files). Show all
Unified · Split
| @@ -100,9 +100,6 @@ jobs: · 99 unmodified lines | |||
| 100 | cache: true | 100 | cache: true |
| 101 | run-install: true | 101 | run-install: true |
| 102 | 102 | ||
| 103 | - name: Ensure Electron runtime is installed | ||
| 104 | run: vp run --filter @t3tools/desktop ensure:electron | ||
| 105 | |||
| 106 | - id: release_meta | 103 | - id: release_meta |
| 107 | name: Resolve release version | 104 | name: Resolve release version |
| 108 | shell: bash | 105 | shell: bash |
| @@ -157,6 +154,40 @@ jobs: · 48 unmodified lines | |||
| 157 | fi | 154 | fi |
| 158 | fi | 155 | fi |
| 159 | 156 | ||
| 157 | - id: previous_tag | ||
| 158 | name: Resolve previous release tag | ||
| 159 | run: | | ||
| 160 | node scripts/resolve-previous-release-tag.ts \ | ||
| 161 | --channel "${{ steps.release_meta.outputs.release_channel }}" \ | ||
| 162 | --current-tag "${{ steps.release_meta.outputs.tag }}" \ | ||
| 163 | --github-output | ||
| 164 | |||
| 165 | quality: | ||
| 166 | name: Release quality checks | ||
| 167 | needs: [preflight] | ||
| 168 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }} | ||
| 169 | runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| 170 | timeout-minutes: 10 | ||
| 171 | steps: | ||
| 172 | - name: Checkout | ||
| 173 | uses: actions/checkout@v6 | ||
| 174 | with: | ||
| 175 | ref: ${{ needs.preflight.outputs.ref }} | ||
| 176 | sparse-checkout: | | ||
| 177 | /* | ||
| 178 | !/.repos/ | ||
| 179 | sparse-checkout-cone-mode: false | ||
| 180 | |||
| 181 | - name: Setup Vite+ | ||
| 182 | uses: voidzero-dev/setup-vp@v1 | ||
| 183 | with: | ||
| 184 | node-version-file: package.json | ||
| 185 | cache: true | ||
| 186 | run-install: true | ||
| 187 | |||
| 188 | - name: Ensure Electron runtime is installed | ||
| 189 | run: vp run --filter @t3tools/desktop ensure:electron | ||
| 190 | |||
| 160 | - name: Check | 191 | - name: Check |
| 161 | run: vp check | 192 | run: vp check |
| 162 | 193 | ||
| @@ -166,14 +197,6 @@ jobs: · 3 unmodified lines | |||
| 166 | - name: Test | 197 | - name: Test |
| 167 | run: vp run test | 198 | run: vp run test |
| 168 | 199 | ||
| 169 | - id: previous_tag | ||
| 170 | name: Resolve previous release tag | ||
| 171 | run: | | ||
| 172 | node scripts/resolve-previous-release-tag.ts \ | ||
| 173 | --channel "${{ steps.release_meta.outputs.release_channel }}" \ | ||
| 174 | --current-tag "${{ steps.release_meta.outputs.tag }}" \ | ||
| 175 | --github-output | ||
| 176 | |||
| 177 | relay_public_config: | 200 | relay_public_config: |
| 178 | name: Resolve T3 Connect public config | 201 | name: Resolve T3 Connect public config |
| 179 | needs: preflight | 202 | needs: preflight |
| @@ -385,14 +408,34 @@ jobs: · 205 unmodified lines | |||
| 385 | uses: voidzero-dev/setup-vp@v1 | 408 | uses: voidzero-dev/setup-vp@v1 |
| 386 | with: | 409 | with: |
| 387 | node-version-file: package.json | 410 | node-version-file: package.json |
| 388 | cache: true | 411 | cache: ${{ matrix.platform != 'win' }} |
| 389 | run-install: | | 412 | run-install: false |
| 390 | args: | 413 | |
| 391 | - --filter=@t3tools/desktop... | 414 | - name: Resolve Windows package cache path |
| 392 | - --filter=t3... | 415 | if: matrix.platform == 'win' |
| 393 | - --filter=@t3tools/scripts... | 416 | id: package_cache_path |
| 417 | shell: pwsh | ||
| 418 | run: '"path=$(vp pm cache dir)" >> $env:GITHUB_OUTPUT' | ||
| 419 | |||
| 420 | - name: Cache Windows packages | ||
| 421 | if: matrix.platform == 'win' | ||
| 422 | uses: actions/cache@v6 | ||
| 423 | with: | ||
| 424 | path: ${{ steps.package_cache_path.outputs.path }} | ||
| 425 | key: windows-release-packages-v1-${{ matrix.arch }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
| 426 | |||
| 427 | - name: Install desktop dependencies | ||
| 428 | run: vp install --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts... | ||
| 429 | |||
| 430 | - name: Cache resource monitor | ||
| 431 | id: resource_monitor_cache | ||
| 432 | uses: actions/cache@v6 | ||
| 433 | with: | ||
| 434 | path: native/resource-monitor/target/${{ matrix.rust_target }}/release/t3-resource-monitor${{ matrix.platform == 'win' && '.exe' || '' }} | ||
| 435 | key: resource-monitor-${{ matrix.rust_target }}-${{ hashFiles('native/resource-monitor/Cargo.lock', 'native/resource-monitor/Cargo.toml', 'native/resource-monitor/src/**') }} | ||
| 394 | 436 | ||
| 395 | - name: Setup Rust | 437 | - name: Setup Rust |
| 438 | if: steps.resource_monitor_cache.outputs.cache-hit != 'true' | ||
| 396 | uses: dtolnay/rust-toolchain@stable | 439 | uses: dtolnay/rust-toolchain@stable |
| 397 | with: | 440 | with: |
| 398 | targets: ${{ matrix.rust_target }} | 441 | targets: ${{ matrix.rust_target }} |
| @@ -518,6 +561,7 @@ jobs: · 119 unmodified lines | |||
| 518 | - name: Build desktop artifact | 561 | - name: Build desktop artifact |
| 519 | shell: bash | 562 | shell: bash |
| 520 | env: | 563 | env: |
| 564 | T3CODE_DESKTOP_REUSE_RESOURCE_MONITOR: ${{ steps.resource_monitor_cache.outputs.cache-hit == 'true' }} | ||
| 521 | CSC_LINK: ${{ secrets.CSC_LINK }} | 565 | CSC_LINK: ${{ secrets.CSC_LINK }} |
| 522 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | 566 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} |
| 523 | APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }} | 567 | APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }} |
| @@ -664,8 +708,8 @@ jobs: · 140 unmodified lines | |||
| 664 | 708 | ||
| 665 | publish_cli: | 709 | publish_cli: |
| 666 | name: Publish CLI to npm | 710 | name: Publish CLI to npm |
| 667 | needs: [preflight, relay_public_config, build] | 711 | needs: [preflight, relay_public_config, quality, build] |
| 668 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' && needs.build.result == 'success' }} | 712 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' && needs.quality.result == 'success' && needs.build.result == 'success' }} |
| 669 | runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 | 713 | runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 |
| 670 | timeout-minutes: 10 | 714 | timeout-minutes: 10 |
| 671 | permissions: | 715 | permissions: |