-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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) | ||
|
@@ -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 |