ci: change ci config

This commit is contained in:
zihluwang committed 2025-07-28 12:49:39 +08:00
1 parent 9eac6a5957
commit 907d31177e
5 files changed
+37 -21

No files matched your search

+33 -17
View File
@@ -39,26 +39,42 @@ jobs:
node-version: 20 node-version: 20
cache: 'pnpm' cache: 'pnpm'
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: pnpm install
- name: Build - name: Build
run: pnpm tauri build uses: tauri-apps/tauri-action@v0
env:
- name: Upload Artefact for Windows GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v4
with: with:
name: Installers tagName: __VERSION__
path: | releaseName: 'v__VERSION__'
D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\msi\zuanbot_${{ github.event.release.tag_name }}_x64_en-US.msi args: ${{ matrix.args }}
D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\nsis\zuanbot_${{ github.event.release.tag_name }}_x64-setup.exe
- name: Upload Artefact # - name: Upload Artefact for Windows
if: matrix.platform == 'macos-latest' # if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v4 # uses: actions/upload-artifact@v4
with: # with:
name: Installers # name: Installers
path: | # path: |
/Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_aarch64.dmg # D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\msi\zuanbot_${{ github.event.release.tag_name }}_x64_en-US.msi
/Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_x64.dmg # D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\nsis\zuanbot_${{ github.event.release.tag_name }}_x64-setup.exe
#
# - name: Upload Artefact
# if: matrix.platform == 'macos-latest'
# uses: actions/upload-artifact@v4
# with:
# name: Installers
# path: |
# /Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_aarch64.dmg
# /Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_x64.dmg
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "zuanbot", "name": "zuanbot",
"private": true, "private": true,
"version": "0.1.0", "version": "0.2.0-dev01",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+1 -1
View File
@@ -5233,7 +5233,7 @@ dependencies = [
[[package]] [[package]]
name = "zuanbot" name = "zuanbot"
version = "0.1.0-alpha" version = "0.1.0-dev01"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"rusqlite", "rusqlite",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "zuanbot" name = "zuanbot"
version = "0.1.0-alpha" version = "0.1.0-dev01"
description = "A Tauri App" description = "A Tauri App"
authors = ["zihluwang"] authors = ["zihluwang"]
edition = "2021" edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "zuanbot", "productName": "zuanbot",
"version": "0.1.0", "version": "0.2.0-dev01",
"identifier": "io.github.zihluwang.zuanbot", "identifier": "io.github.zihluwang.zuanbot",
"build": { "build": {
"beforeDevCommand": "pnpm dev", "beforeDevCommand": "pnpm dev",