Skip to content

Commit

Permalink
👷 调整测试 x6
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Dec 12, 2024
1 parent aaf685c commit b7c8fb2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
- platform: windows-latest
args: "--verbose"
target: "windows"
bundleDir: msi
bundlePath: msi/TeyvatGuide_v${{ github.event.inputs.version }}_x64_zh-CN.msi
- platform: macos-latest
args: "--target x86_64-apple-darwin"
target: "macos-intel"
bundleDir: dmg
bundlePath: macos/TeyvatGuide.app
- platform: macos-latest
args: "--target aarch64-apple-darwin"
target: "macos-arm"
bundleDir: dmg
bundlePath: macos/TeyvatGuide.app
runs-on: ${{ matrix.settings.platform }}

steps:
Expand All @@ -34,6 +34,10 @@ 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)
if: matrix.settings.target == 'macos-intel'
run: rustup target add x86_64-apple-darwin
Expand Down Expand Up @@ -71,5 +75,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: TeyvatGuide_v${{ github.event.inputs.version }}_${{ matrix.settings.target }}
path: src-tauri/target/${{ matrix.settings.target }}/release/bundle/${{ matrix.settings.bundleDir }}/
path: src-tauri/target/release/${{ matrix.settings.bundlePath }}
if-no-files-found: error

0 comments on commit b7c8fb2

Please sign in to comment.