chore: alpha ci

This commit is contained in:
GyDi 2022-11-12 16:47:27 +08:00
parent 7ef4b7eeb8
commit ff6b119f27
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -11,6 +11,7 @@ env:
jobs: jobs:
release: release:
strategy: strategy:
fail-fast: false
matrix: matrix:
os: [windows-latest, ubuntu-latest, macos-latest] os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -27,20 +28,20 @@ jobs:
override: true override: true
- name: Rust Cache - name: Rust Cache
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 uses: Swatinem/rust-cache@v2
with: with:
working-directory: src-tauri workspaces: src-tauri
- name: Install Node - name: Install Node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14 node-version: 16
- name: Install Dependencies (ubuntu only) - name: Install Dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev libayatana-appindicator3-dev sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Get yarn cache dir path - name: Get yarn cache dir path
id: yarn-cache-dir-path id: yarn-cache-dir-path
@ -61,19 +62,17 @@ jobs:
yarn run check yarn run check
- name: Tauri build - name: Tauri build
uses: tauri-apps/tauri-action@743a37fd53cbdd122910b818b9bef7b7aa019134 uses: tauri-apps/tauri-action@0
# enable cache even though failed
continue-on-error: true
env: env:
VITE_MULTI_CORE: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with: with:
tagName: alpha tagName: alpha
releaseName: "Clash Verge Alpha" releaseName: "Clash Verge Alpha"
releaseBody: "Alpha Version" releaseBody: "Alpha Version (include debug)"
releaseDraft: true releaseDraft: false
includeDebug: true
prerelease: true prerelease: true
# - name: Portable Bundle # - name: Portable Bundle