feat: Support windows aarch64 (#112)

This commit is contained in:
MystiPanda 2023-12-10 20:45:27 +08:00 committed by GitHub
parent 3060fc2af4
commit 5cc3526f8f
3 changed files with 17 additions and 9 deletions

View File

@ -20,8 +20,8 @@ jobs:
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
- os: windows-latest - os: windows-latest
target: i686-pc-windows-msvc target: i686-pc-windows-msvc
# - os: windows-latest - os: windows-latest
# target: aarch64-pc-windows-msvc target: aarch64-pc-windows-msvc
- os: macos-latest - os: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
- os: macos-latest - os: macos-latest
@ -32,12 +32,22 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Apply Patch
if: matrix.target == 'aarch64-pc-windows-msvc'
run: |
git config --global user.email "clash-verge-rev@github.io"
git config --global user.name "clash-verge-rev"
git am patches/support-windows-aarch64.patch
- name: Init Submodule
if: matrix.target == 'aarch64-pc-windows-msvc'
run: git submodule update --init --recursive
- name: Install Rust Stable - name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Add Rust Target - name: Add Rust Target
run: | run: rustup target add ${{ matrix.target }}
rustup target add ${{ matrix.target }}
- name: Rust Cache - name: Rust Cache
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
@ -61,7 +71,6 @@ jobs:
pnpm check ${{ matrix.target }} pnpm check ${{ matrix.target }}
- name: Tauri build - name: Tauri build
if: startsWith(matrix.os, 'windows') || startsWith(matrix.os,'macos') || startsWith(matrix.target,'x86_64')
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -78,8 +87,7 @@ jobs:
- name: Portable Bundle - name: Portable Bundle
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: pnpm portable ${{ matrix.target }}
pnpm portable ${{ matrix.target }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}

View File

@ -29,7 +29,7 @@ index 4c6dde5..5fd9ad8 100644
nanoid = "0.4" nanoid = "0.4"
chrono = "0.4" chrono = "0.4"
sysinfo = "0.29" sysinfo = "0.29"
-rquickjs = "0.4" -rquickjs = "0.3"
serde_json = "1.0" serde_json = "1.0"
serde_yaml = "0.9" serde_yaml = "0.9"
auto-launch = "0.5" auto-launch = "0.5"

View File

@ -25,7 +25,7 @@ log4rs = "1"
nanoid = "0.4" nanoid = "0.4"
chrono = "0.4" chrono = "0.4"
sysinfo = "0.29" sysinfo = "0.29"
rquickjs = "0.4" rquickjs = "0.3"
serde_json = "1.0" serde_json = "1.0"
serde_yaml = "0.9" serde_yaml = "0.9"
auto-launch = "0.5" auto-launch = "0.5"