2022-05-10 19:31:19 +03:00
|
|
|
name: Test CI
|
|
|
|
|
2022-05-11 06:22:09 +03:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
os:
|
|
|
|
description: "Runs on OS"
|
|
|
|
required: true
|
|
|
|
default: windows-latest
|
|
|
|
type: choice
|
|
|
|
options:
|
|
|
|
- windows-latest
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
2022-08-29 06:02:14 +03:00
|
|
|
- ubuntu-18.04
|
|
|
|
- ubuntu-20.04
|
|
|
|
- ubuntu-22.04
|
|
|
|
- macos-10.15
|
|
|
|
- macos-11
|
|
|
|
- macos-12
|
|
|
|
- windows-2019
|
|
|
|
- windows-2022
|
2022-05-10 19:31:19 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
RUST_BACKTRACE: short
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2022-05-11 06:22:09 +03:00
|
|
|
runs-on: ${{ github.event.inputs.os }}
|
2022-05-10 19:31:19 +03:00
|
|
|
if: startsWith(github.repository, 'zzzgydi')
|
|
|
|
steps:
|
2022-11-02 19:51:49 +03:00
|
|
|
- name: System Version
|
|
|
|
run: |
|
|
|
|
echo ${{ github.event.inputs.os }}
|
|
|
|
|
2022-05-10 19:31:19 +03:00
|
|
|
- name: Checkout repository
|
2023-11-02 15:14:05 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-05-10 19:31:19 +03:00
|
|
|
|
2023-07-24 04:13:19 +03:00
|
|
|
- name: install Rust stable
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2022-05-10 19:31:19 +03:00
|
|
|
|
2022-09-28 13:50:33 +03:00
|
|
|
- name: Rust Cache
|
2022-11-20 18:17:05 +03:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-09-28 13:50:33 +03:00
|
|
|
with:
|
2022-11-20 18:17:05 +03:00
|
|
|
workspaces: src-tauri
|
2022-05-11 06:30:19 +03:00
|
|
|
|
2022-05-10 19:31:19 +03:00
|
|
|
- name: Install Node
|
2023-11-02 15:14:05 +03:00
|
|
|
uses: actions/setup-node@v4
|
2022-05-10 19:31:19 +03:00
|
|
|
with:
|
2023-07-24 04:47:05 +03:00
|
|
|
node-version: "16"
|
|
|
|
cache: "yarn"
|
2022-05-10 19:31:19 +03:00
|
|
|
|
|
|
|
- name: Install Dependencies (ubuntu only)
|
2022-08-29 12:26:09 +03:00
|
|
|
if: startsWith(github.event.inputs.os, 'ubuntu-')
|
2022-05-10 19:31:19 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-07-24 04:13:19 +03:00
|
|
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
2022-09-28 12:26:32 +03:00
|
|
|
|
2022-05-10 19:31:19 +03:00
|
|
|
- name: Yarn install and check
|
|
|
|
run: |
|
2023-07-24 04:47:05 +03:00
|
|
|
yarn install --network-timeout 1000000 --frozen-lockfile
|
2022-05-31 19:43:57 +03:00
|
|
|
yarn run check
|
2022-05-10 19:31:19 +03:00
|
|
|
|
2022-09-28 13:50:33 +03:00
|
|
|
- name: Tauri build
|
2022-11-20 18:17:05 +03:00
|
|
|
uses: tauri-apps/tauri-action@v0
|
2022-09-28 10:13:24 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
|
|
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
2023-07-24 04:47:05 +03:00
|
|
|
with:
|
|
|
|
tagName: alpha
|
2023-07-24 04:59:13 +03:00
|
|
|
releaseName: "Clash Verge Alpha"
|
|
|
|
releaseBody: "Alpha Version (include debug)"
|
|
|
|
releaseDraft: false
|
2023-07-24 04:47:05 +03:00
|
|
|
includeUpdaterJson: false
|