From 256b358f31e59ab9e36129121c8aec19977db781 Mon Sep 17 00:00:00 2001 From: token <239573049@qq.com> Date: Sat, 23 Aug 2025 03:02:20 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E4=B8=BAARM64=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=B7=BB=E5=8A=A0=E6=A0=87=E5=87=86=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为linux-arm64平台添加单独的构建步骤,使用标准构建而非AOT编译,以解决ARM64架构的兼容性问题 --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ce03e6..ea1f581 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,9 +46,14 @@ jobs: - name: Install dependencies run: dotnet restore src/TunnelClient/TunnelClient.csproj - - name: Build TunnelClient (AOT) + - name: Build TunnelClient (AOT) - Non ARM64 + if: matrix.runtime != 'linux-arm64' run: dotnet publish src/TunnelClient/TunnelClient.csproj -c Release -r ${{ matrix.runtime }} --self-contained true -p:PublishAot=true -p:PublishSingleFile=true -o ./artifacts/tunnelclient-${{ matrix.runtime }} + - name: Build TunnelClient (Standard) - ARM64 + if: matrix.runtime == 'linux-arm64' + run: dotnet publish src/TunnelClient/TunnelClient.csproj -c Release -r ${{ matrix.runtime }} --self-contained true -p:PublishSingleFile=true -o ./artifacts/tunnelclient-${{ matrix.runtime }} + - name: Upload TunnelClient artifacts uses: actions/upload-artifact@v4 with: