ci: use tauri-cli from cargo, add cargo fetch step

This commit is contained in:
Ryan Walters
2025-08-20 10:27:12 -05:00
parent e35ac0eeee
commit 51498b234e

View File

@@ -75,6 +75,15 @@ jobs:
- name: Install JS deps - name: Install JS deps
run: pnpm install --frozen-lockfile --prefer-offline run: pnpm install --frozen-lockfile --prefer-offline
- name: Install Rust dependencies
run: cargo fetch --manifest-path src-tauri/Cargo.toml
- name: Install Tauri CLI
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: tauri-cli@^2.0.0
locked: true
- name: Install Linux dependencies - name: Install Linux dependencies
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
@@ -90,11 +99,11 @@ jobs:
- name: Build app (tauri - host) - name: Build app (tauri - host)
if: matrix.target == '' if: matrix.target == ''
run: pnpm tauri build run: cargo tauri build
- name: Build app (tauri - target) - name: Build app (tauri - target)
if: matrix.target != '' if: matrix.target != ''
run: pnpm tauri build --target ${{ matrix.target }} run: cargo tauri build --target ${{ matrix.target }}
- name: Upload binary artifact - name: Upload binary artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4