mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
👷 调整测试 x9
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -26,6 +26,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup SSH
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Add SSH known hosts
|
||||
run: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
- name: Test SSH connection
|
||||
run: ssh -T git@github.com || true
|
||||
- name: Add Rust targets(macOS Intel)
|
||||
if: matrix.settings.target == 'macos-intel'
|
||||
run: rustup target add x86_64-apple-darwin
|
||||
|
||||
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@@ -9,12 +9,14 @@ on:
|
||||
|
||||
jobs:
|
||||
build-tauri:
|
||||
permissions:
|
||||
contents: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- platform: windows-latest
|
||||
args: "--verbose"
|
||||
args: ""
|
||||
target: "windows"
|
||||
bundlePath: msi/TeyvatGuide_v${{ github.event.inputs.version }}_x64_zh-CN.msi
|
||||
- platform: macos-latest
|
||||
@@ -34,6 +36,8 @@ jobs:
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Add SSH known hosts
|
||||
run: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||
- name: Test SSH connection
|
||||
run: ssh -T git@github.com || true
|
||||
- name: Add Rust targets(macOS Intel)
|
||||
@@ -63,15 +67,10 @@ jobs:
|
||||
|
||||
- name: Build app
|
||||
run: pnpm tauri build -- ${{ matrix.settings.args }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAURI_DIST_DIR: dist/${{ matrix.settings.target }}
|
||||
TAURI_DIST_TARGET: ${{ matrix.settings.target }}
|
||||
TAURI_VERSION: ${{ github.event.inputs.version }}
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: TeyvatGuide_v${{ github.event.inputs.version }}_${{ matrix.settings.target }}
|
||||
path: src-tauri/target/release/${{ matrix.settings.bundlePath }}
|
||||
path: src-tauri/target/release/bundle/${{ matrix.settings.bundlePath }}
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user