From 540221467a35d90c48cb27dd182c8f173523a1fb Mon Sep 17 00:00:00 2001 From: keiko233 Date: Wed, 15 Nov 2023 14:37:10 +0800 Subject: [PATCH] chore: clean up workflows --- .github/workflows/alpha.yml | 92 -------------------------- .github/workflows/ci.yml | 98 ---------------------------- .github/workflows/compatible.yml | 102 ----------------------------- .github/workflows/meta.yml | 107 ------------------------------- .github/workflows/test.yml | 76 ---------------------- .github/workflows/updater.yml | 25 -------- 6 files changed, 500 deletions(-) delete mode 100644 .github/workflows/alpha.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/compatible.yml delete mode 100644 .github/workflows/meta.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/updater.yml diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml deleted file mode 100644 index 7ba81b09..00000000 --- a/.github/workflows/alpha.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Alpha CI - -on: - workflow_dispatch: - inputs: - debug: - type: boolean - default: false - -env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: short - -jobs: - release: - strategy: - fail-fast: false - matrix: - os: [windows-latest, ubuntu-20.04, macos-latest] - runs-on: ${{ matrix.os }} - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: "yarn" - - - name: Delete current release assets - if: startsWith(matrix.os, 'ubuntu-') - uses: mknejp/delete-release-assets@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: alpha - fail-if-no-assets: false - fail-if-no-release: false - assets: | - *.zip - *.gz - *.AppImage - *.deb - *.dmg - *.msi - *.sig - - - name: Install Dependencies (ubuntu only) - if: startsWith(matrix.os, 'ubuntu-') - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf openssl - - - name: Yarn install and check - run: | - yarn install --network-timeout 1000000 --frozen-lockfile - yarn run check - - - name: Tauri build - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - with: - tagName: alpha - releaseName: "Clash Verge Alpha" - releaseBody: "Alpha Version (include debug)" - releaseDraft: false - prerelease: true - includeDebug: ${{ github.event.inputs.debug }} - - - name: Portable Bundle - if: startsWith(matrix.os, 'windows-') - run: | - yarn build - yarn run portable - env: - TAG_NAME: alpha - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - VITE_WIN_PORTABLE: 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 31029c42..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,98 +0,0 @@ -name: Release CI - -on: - workflow_dispatch: - push: - tags: - - v** - -env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: short - -jobs: - release: - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: "yarn" - - - name: Install Dependencies (ubuntu only) - if: startsWith(matrix.os, 'ubuntu-') - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf openssl - - - name: Yarn install and check - run: | - yarn install --network-timeout 1000000 --frozen-lockfile - yarn run check - - - name: Tauri build - uses: tauri-apps/tauri-action@v0 - # enable cache even though failed - # continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - with: - tagName: v__VERSION__ - releaseName: "Clash Verge v__VERSION__" - releaseBody: "More new features are now supported." - releaseDraft: false - prerelease: true - - - name: Portable Bundle - if: startsWith(matrix.os, 'windows-') - # rebuild with env settings - run: | - yarn build - yarn run portable - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - VITE_WIN_PORTABLE: 1 - - release-update: - needs: release - runs-on: ubuntu-latest - if: | - startsWith(github.repository, 'zzzgydi') && - startsWith(github.ref, 'refs/tags/v') - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: "yarn" - - - name: Yarn install - run: yarn install --network-timeout 1000000 --frozen-lockfile - - - name: Release updater file - run: yarn run updater - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/compatible.yml b/.github/workflows/compatible.yml deleted file mode 100644 index abbbbb67..00000000 --- a/.github/workflows/compatible.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: Compatible CI - -on: - workflow_dispatch: - # push: - # tags: - # - v** - -env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: short - -jobs: - build: - strategy: - fail-fast: false - matrix: - targets: - - tag: macOS-10.15 - os: macos-10.15 - - tag: Ubuntu18 - os: ubuntu-18.04 - - tag: Ubuntu22 - os: ubuntu-22.04 - - runs-on: ${{ matrix.targets.os }} - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri - - - name: Install Node - uses: actions/setup-node@v1 - with: - node-version: 16 - - # - name: Install Dependencies (ubuntu18 only) - # if: matrix.targets.os == 'ubuntu-18.04' - # run: | - # 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 - - - name: Install Dependencies (ubuntu22 only) - if: startsWith(matrix.targets.os, 'ubuntu-') - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf - - - name: Get yarn cache dir path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Yarn Cache - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Yarn install and check - run: | - yarn install --network-timeout 1000000 - yarn run check - - - name: Tauri build - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - with: - tagName: ${{ matrix.targets.tag }} - releaseName: "Compatible For ${{ matrix.targets.tag }}" - releaseBody: "More new features are now supported." - releaseDraft: false - prerelease: false - - # - name: Portable Bundle - # if: matrix.os == 'windows-latest' - # # rebuild with env settings - # run: | - # yarn build - # yarn run portable - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - # TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - # VITE_WIN_PORTABLE: 1 diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml deleted file mode 100644 index a26d9f0c..00000000 --- a/.github/workflows/meta.yml +++ /dev/null @@ -1,107 +0,0 @@ -name: Meta CI - -on: - workflow_dispatch: - push: - tags: - - v** - -env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: short - -jobs: - release: - strategy: - fail-fast: false - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri - - - name: Install Node - uses: actions/setup-node@v1 - with: - node-version: 16 - - - name: Delete current release assets - if: matrix.os == 'ubuntu-latest' - uses: mknejp/delete-release-assets@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: meta - fail-if-no-assets: false - fail-if-no-release: false - assets: | - *.zip - *.gz - *.AppImage - *.deb - *.dmg - *.msi - *.sig - - - name: Install Dependencies (ubuntu only) - if: startsWith(matrix.os, 'ubuntu-') - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf openssl - - - name: Get yarn cache dir path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Yarn Cache - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Yarn install and check - run: | - yarn install --network-timeout 1000000 - yarn run check - - - name: Tauri build - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - with: - tagName: meta - releaseName: "Clash Verge Meta" - releaseBody: "" - releaseDraft: false - prerelease: true - args: -f default-meta - - - name: Portable Bundle - if: matrix.os == 'windows-latest' - run: | - yarn build -f default-meta - yarn run portable - env: - TAG_NAME: meta - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - VITE_WIN_PORTABLE: 1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 821bcf85..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Test CI - -on: - workflow_dispatch: - inputs: - os: - description: "Runs on OS" - required: true - default: windows-latest - type: choice - options: - - windows-latest - - ubuntu-latest - - macos-latest - - ubuntu-18.04 - - ubuntu-20.04 - - ubuntu-22.04 - - macos-10.15 - - macos-11 - - macos-12 - - windows-2019 - - windows-2022 - -env: - CARGO_INCREMENTAL: 0 - RUST_BACKTRACE: short - -jobs: - release: - runs-on: ${{ github.event.inputs.os }} - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: System Version - run: | - echo ${{ github.event.inputs.os }} - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - - - name: Rust Cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: "yarn" - - - name: Install Dependencies (ubuntu only) - if: startsWith(github.event.inputs.os, 'ubuntu-') - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - - - name: Yarn install and check - run: | - yarn install --network-timeout 1000000 --frozen-lockfile - yarn run check - - - name: Tauri build - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - with: - tagName: alpha - releaseName: "Clash Verge Alpha" - releaseBody: "Alpha Version (include debug)" - releaseDraft: false - includeUpdaterJson: false diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml deleted file mode 100644 index 2f639ddf..00000000 --- a/.github/workflows/updater.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Updater CI - -on: workflow_dispatch - -jobs: - release-update: - runs-on: ubuntu-latest - if: startsWith(github.repository, 'zzzgydi') - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: "yarn" - - - name: Yarn install - run: yarn install --network-timeout 1000000 --frozen-lockfile - - - name: Release updater file - run: yarn run updater - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}