feat: Tauri v2 release workflow and frontend API migration
Some checks failed
CI / Rust Format (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Test Server (push) Has been cancelled
CI / Frontend Check (push) Has been cancelled
CI / Tauri Client Check (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Build Tauri (Linux) (push) Has been cancelled
Some checks failed
CI / Rust Format (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Test Server (push) Has been cancelled
CI / Frontend Check (push) Has been cancelled
CI / Tauri Client Check (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Build Tauri (Linux) (push) Has been cancelled
- Update release workflow with matrix strategy for Linux/macOS/Windows - Upgrade @tauri-apps/api from v1 to v2 in frontend - Change all tauri/tauri imports to tauri/core (Tauri v2) - Sync tauri.conf.json across project root and src-tauri
This commit is contained in:
83
.github/workflows/release.yml
vendored
83
.github/workflows/release.yml
vendored
@@ -66,7 +66,6 @@ jobs:
|
||||
docker-push:
|
||||
name: Docker Push
|
||||
runs-on: ubuntu-latest
|
||||
needs: []
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -102,16 +101,27 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
build-tauri-linux:
|
||||
name: Build Tauri (Linux)
|
||||
runs-on: ubuntu-latest
|
||||
build-tauri:
|
||||
name: Build Tauri (${{ matrix.platform }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- platform: linux
|
||||
runner: ubuntu-latest
|
||||
- platform: macos
|
||||
runner: macos-latest
|
||||
- platform: windows
|
||||
runner: windows-latest
|
||||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install system dependencies
|
||||
- name: Install system dependencies (Linux)
|
||||
if: matrix.platform == 'linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libssl-dev
|
||||
@@ -126,72 +136,11 @@ jobs:
|
||||
- name: Install frontend deps
|
||||
run: cd client/src-ui && npm ci
|
||||
|
||||
- name: Build Tauri (Linux)
|
||||
- name: Build Tauri
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
projectPath: client
|
||||
tagName: ${{ github.ref_name }}
|
||||
releaseName: "EifelDC ${{ github.ref_name }}"
|
||||
releaseBody: "See [CHANGELOG.md](CHANGELOG.md) for details."
|
||||
releaseDraft: true
|
||||
|
||||
build-tauri-macos:
|
||||
name: Build Tauri (macOS)
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: client/src-ui/package-lock.json
|
||||
|
||||
- name: Install frontend deps
|
||||
run: cd client/src-ui && npm ci
|
||||
|
||||
- name: Build Tauri (macOS)
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
projectPath: client
|
||||
tagName: ${{ github.ref_name }}
|
||||
releaseName: "EifelDC ${{ github.ref_name }}"
|
||||
releaseBody: "See [CHANGELOG.md](CHANGELOG.md) for details."
|
||||
releaseDraft: true
|
||||
|
||||
build-tauri-windows:
|
||||
name: Build Tauri (Windows)
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: client/src-ui/package-lock.json
|
||||
|
||||
- name: Install frontend deps
|
||||
run: cd client/src-ui && npm ci
|
||||
|
||||
- name: Build Tauri (Windows)
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
projectPath: client
|
||||
tagName: ${{ github.ref_name }}
|
||||
releaseName: "EifelDC ${{ github.ref_name }}"
|
||||
releaseBody: "See [CHANGELOG.md](CHANGELOG.md) for details."
|
||||
|
||||
Reference in New Issue
Block a user