mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-06 05:14:37 -06:00
ci: use tauri-cli from cargo, add cargo fetch step
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user