Skip to content

Commit

Permalink
👷 调整测试 x9
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Dec 12, 2024
1 parent a09092c commit fb0a6c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup SSH
uses: webfactory/[email protected]
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 [email protected] || true
- name: Add Rust targets(macOS Intel)
if: matrix.settings.target == 'macos-intel'
run: rustup target add x86_64-apple-darwin
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,6 +36,8 @@ jobs:
uses: webfactory/[email protected]
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 [email protected] || true
- name: Add Rust targets(macOS Intel)
Expand Down Expand Up @@ -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

0 comments on commit fb0a6c3

Please sign in to comment.