Compare commits

...

9 Commits
main ... test

Author SHA1 Message Date
GyDi
40b0d29997 test: change ci 2021-12-24 23:05:35 +08:00
GyDi
5228e33d08
test: rm redundant build step 2021-12-24 20:25:11 +08:00
GyDi
d30243e1a6
test: fix cache 2021-12-24 14:06:06 +08:00
GyDi
47f47b86f3
test: use cache 2021-12-24 14:02:02 +08:00
GyDi
68645a42b2 test: fix 2021-12-24 02:43:01 +08:00
GyDi
dff17d77e8 test: rm cargo install 2021-12-24 02:36:43 +08:00
GyDi
d80618e1fe test: install tauri 2021-12-24 02:28:30 +08:00
GyDi
fbe751778b test: fix ci 2021-12-24 02:20:03 +08:00
GyDi
e34605d16f test: build action 2021-12-24 02:14:27 +08:00
2 changed files with 55 additions and 0 deletions

54
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,54 @@
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
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- 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/
src-tauri/WixTools/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: install app dependencies and build it
run: yarn && yarn run predev
- 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

View File

@ -3,6 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"license": "GPL-3.0", "license": "GPL-3.0",
"scripts": { "scripts": {
"tauri": "tauri",
"dev": "cargo tauri dev", "dev": "cargo tauri dev",
"build": "cargo tauri build", "build": "cargo tauri build",
"web:dev": "vite", "web:dev": "vite",