Skip to content

Commit 21bd891

Browse files
author
ladeak
committed
Cross compile on linux arm64
1 parent 2d6ce26 commit 21bd891

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/CD.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,27 @@ jobs:
9292
- name: Build VSCodeExtension dependencies
9393
run: |
9494
dotnet publish src/CHttpExtension -r linux-x64 -f net9.0 # .NET 9
95-
dotnet publish src/CHttpExtension -r linux-arm64 -f net9.0 # .NET 9
9695
- name: Upload CHttpExtension file to artifacts (linux-x64)
9796
uses: actions/upload-artifact@v4
9897
with:
9998
name: CHttpExtension-linux-x64 # The name of the artifact bundle
10099
path: src/CHttpExtension/bin/Release/net9.0/linux-x64/publish/*
100+
101+
cross-compile-linux-aot:
102+
runs-on: ubuntu-26.04-arm
103+
steps:
104+
- uses: actions/checkout@v6
105+
- name: Setup .NET
106+
uses: actions/setup-dotnet@v5
107+
with:
108+
dotnet-version: ${{ env.DOTNET_VERSION }}
109+
- name: Set VERSION variable from tag
110+
run: |
111+
$ver="${{GITHUB.REF_NAME}}" -replace 'v', ''
112+
echo "VERSION=${ver}" >> $env:GITHUB_ENV
113+
- name: Build VSCodeExtension dependencies
114+
run: |
115+
dotnet publish src/CHttpExtension -r linux-arm64 -f net9.0 # .NET 9
101116
- name: Upload CHttpExtension file to artifacts (linux-arm64)
102117
uses: actions/upload-artifact@v4
103118
with:
@@ -176,7 +191,7 @@ jobs:
176191
177192
vscodeextension-linux-arm64:
178193
runs-on: ubuntu-latest
179-
needs: [build-and-deploy]
194+
needs: [cross-compile-linux-arm64]
180195
permissions:
181196
contents: write
182197
steps:

.github/workflows/CI.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,19 @@ jobs:
4141
npm run vsce-deploy-win-x64
4242
npm run vsce-deploy-linux-x64
4343
popd
44+
cross-compile-linux-aot:
45+
runs-on: ubuntu-26.04-arm
46+
steps:
47+
- uses: actions/checkout@v6
48+
- name: Setup .NET
49+
uses: actions/setup-dotnet@v5
50+
with:
51+
dotnet-version: ${{ env.DOTNET_VERSION }}
52+
- name: Build VSCodeExtension dependencies
53+
run: |
54+
dotnet publish src/CHttpExtension -r linux-arm64 -f net9.0 # .NET 9
55+
- name: Upload CHttpExtension file to artifacts (linux-arm64)
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: CHttpExtension-linux-arm64 # The name of the artifact bundle
59+
path: src/CHttpExtension/bin/Release/net9.0/linux-arm64/publish/*

0 commit comments

Comments
 (0)