alpha.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: Alpha CI
  2. on: workflow_dispatch
  3. env:
  4. CARGO_INCREMENTAL: 0
  5. RUST_BACKTRACE: short
  6. jobs:
  7. release:
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. os: [windows-latest, ubuntu-latest, macos-latest]
  12. runs-on: ${{ matrix.os }}
  13. if: startsWith(github.repository, 'zzzgydi')
  14. steps:
  15. - name: Checkout repository
  16. uses: actions/checkout@v2
  17. - name: Install Rust
  18. uses: actions-rs/toolchain@v1
  19. with:
  20. toolchain: stable
  21. profile: minimal
  22. override: true
  23. - name: Rust Cache
  24. uses: Swatinem/rust-cache@v2
  25. with:
  26. workspaces: src-tauri
  27. - name: Install Node
  28. uses: actions/setup-node@v1
  29. with:
  30. node-version: 16
  31. - name: Install Dependencies (ubuntu only)
  32. if: matrix.os == 'ubuntu-latest'
  33. run: |
  34. sudo apt-get update
  35. sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
  36. - name: Get yarn cache dir path
  37. id: yarn-cache-dir-path
  38. run: echo "::set-output name=dir::$(yarn cache dir)"
  39. - name: Yarn Cache
  40. uses: actions/cache@v2
  41. id: yarn-cache
  42. with:
  43. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  44. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  45. restore-keys: |
  46. ${{ runner.os }}-yarn-
  47. - name: Yarn install and check
  48. run: |
  49. yarn install --network-timeout 1000000
  50. yarn run check
  51. - name: Tauri build
  52. uses: tauri-apps/tauri-action@v0
  53. env:
  54. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  55. TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
  56. TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
  57. with:
  58. tagName: alpha
  59. releaseName: "Clash Verge Alpha"
  60. releaseBody: "Alpha Version (include debug)"
  61. releaseDraft: false
  62. includeDebug: true
  63. prerelease: true
  64. # - name: Portable Bundle
  65. # if: matrix.os == 'windows-latest'
  66. # run: |
  67. # yarn run portable
  68. # env:
  69. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}