clash-verge/.github/workflows/test.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2021-12-23 21:14:27 +03:00
name: Test CI
on:
push:
branches: [test]
jobs:
build-tauri:
strategy:
fail-fast: false
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 14
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
2021-12-24 09:06:06 +03:00
- name: Get yarn cache directory path
2021-12-24 09:02:02 +03:00
id: yarn-cache-dir-path
2021-12-24 09:06:06 +03:00
run: echo "::set-output name=dir::$(yarn cache dir)"
2021-12-24 09:02:02 +03:00
- 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-
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
src-tauri/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2021-12-23 21:14:27 +03:00
- name: install app dependencies and build it
2021-12-24 15:25:11 +03:00
run: yarn && yarn run predev
2021-12-23 21:14:27 +03:00
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: clash-verge-v__VERSION__
releaseName: "Clash Verge v__VERSION__"
releaseBody: "This is a test release."
releaseDraft: true
prerelease: false