Skip to content

Commit 3250b02

Browse files
committed
Fix cross compilation for arm64.
1 parent db2a8f3 commit 3250b02

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ jobs:
101101
run: dotnet tool install --tool-path . nbgv
102102
- name: Set Version
103103
run: ./nbgv cloud
104+
- name: Install linux-arm64 NativeAOT toolchain
105+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.dotnet-arch == 'arm64' }}
106+
run: |
107+
sudo dpkg --add-architecture arm64
108+
sudo apt-get update
109+
sudo apt-get install -y \
110+
clang llvm lld \
111+
binutils-aarch64-linux-gnu \
112+
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
113+
zlib1g-dev:arm64
104114
- name: Publish SelfContained CLI
105115
run: dotnet publish MSStore.CLI --self-contained -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} -f ${{ matrix.dotnet-framework }} /p:Configuration=Release /p:PublishProfile=${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
106116
- run: |

0 commit comments

Comments
 (0)