mirror of
https://github.com/239573049/FastGateway.git
synced 2026-10-17 05:20:30 +08:00
ci(workflow): 为ARM64平台添加标准构建步骤
为linux-arm64平台添加单独的构建步骤,使用标准构建而非AOT编译,以解决ARM64架构的兼容性问题
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user