Skip to content

Commit

Permalink
ci: add windows arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 20, 2024
1 parent 2a98621 commit 760df0c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/deps-build-windows-nsis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
options:
- x86_64
- i686
# - aarch64
- aarch64

workflow_call:
inputs:
Expand Down Expand Up @@ -103,6 +103,9 @@ jobs:
'i686' {
pnpm check --arch ia32 --sidecar-host i686-pc-windows-msvc
}
'aarch64' {
pnpm check --arch arm64 --sidecar-host aarch64-pc-windows-msvc
}
}
- name: Prepare (Windows NSIS and Portable)
Expand Down Expand Up @@ -131,7 +134,7 @@ jobs:

- name: Tauri build i686
uses: tauri-apps/tauri-action@v0
if: ${{ inputs.arch != 'x86_64' }}
if: ${{ inputs.arch == 'i686' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
Expand All @@ -145,6 +148,22 @@ jobs:
prerelease: true
tauriScript: pnpm tauri
args: ${{ inputs.nightly == true && '-f nightly -c ./backend/tauri/tauri.nightly.conf.json --target i686-pc-windows-msvc' || '-f default-meta --target i686-pc-windows-msvc' }}
- name: Tauri build arm64
uses: tauri-apps/tauri-action@v0
if: ${{ inputs.arch == 'aarch64' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
NIGHTLY: ${{ inputs.nightly == true && 'true' || 'false' }}
with:
tagName: ${{ inputs.tag }}
releaseName: "Clash Nyanpasu Dev"
releaseBody: "More new features are now supported."
releaseDraft: false
prerelease: true
tauriScript: pnpm tauri
args: ${{ inputs.nightly == true && '-f nightly -c ./backend/tauri/tauri.nightly.conf.json --target aarch64-pc-windows-msvc' || '-f default-meta --target aarch64-pc-windows-msvc' }}

- name: Portable Bundle
if: ${{ inputs.portable == true }}
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/target-dev-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
tag: "pre-release"
secrets: inherit

windows_aarch64_build:
name: Windows aarch64 Build
uses: ./.github/workflows/deps-build-windows-nsis.yaml
needs: [delete_current_releases]
with:
portable: true
nightly: true
arch: "aarch64"
tag: "pre-release"
secrets: inherit

windows_i686_build:
name: Windows i686 Build
uses: ./.github/workflows/deps-build-windows-nsis.yaml
Expand Down Expand Up @@ -115,6 +126,7 @@ jobs:
[
windows_amd64_build,
windows_i686_build,
windows_aarch64_build,
linux_amd64_build,
linux_i686_build,
linux_aarch64_build,
Expand Down

0 comments on commit 760df0c

Please sign in to comment.