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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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)
|
- name: Add Rust targets(macOS Intel)
|
||||||
if: matrix.settings.target == 'macos-intel'
|
if: matrix.settings.target == 'macos-intel'
|
||||||
run: rustup target add x86_64-apple-darwin
|
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:
|
jobs:
|
||||||
build-tauri:
|
build-tauri:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
settings:
|
settings:
|
||||||
- platform: windows-latest
|
- platform: windows-latest
|
||||||
args: "--verbose"
|
args: ""
|
||||||
target: "windows"
|
target: "windows"
|
||||||
bundlePath: msi/TeyvatGuide_v${{ github.event.inputs.version }}_x64_zh-CN.msi
|
bundlePath: msi/TeyvatGuide_v${{ github.event.inputs.version }}_x64_zh-CN.msi
|
||||||
- platform: macos-latest
|
- platform: macos-latest
|
||||||
@@ -34,6 +36,8 @@ jobs:
|
|||||||
uses: webfactory/ssh-agent@v0.9.0
|
uses: webfactory/ssh-agent@v0.9.0
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
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
|
- name: Test SSH connection
|
||||||
run: ssh -T git@github.com || true
|
run: ssh -T git@github.com || true
|
||||||
- name: Add Rust targets(macOS Intel)
|
- name: Add Rust targets(macOS Intel)
|
||||||
@@ -63,15 +67,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: pnpm tauri build -- ${{ matrix.settings.args }}
|
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
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: TeyvatGuide_v${{ github.event.inputs.version }}_${{ matrix.settings.target }}
|
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
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user