File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1010 strategy : ${{ job_data.strategy }}
1111 pool :
1212 type : linux
13- ${{ if eq(job_data.job, 'linux_arm64') }} :
14- hostArchitecture : arm64
15-
1613 variables :
1714 ob_artifactSuffix : _$(name)
1815 ob_git_checkout : false
@@ -25,22 +22,22 @@ jobs:
2522 ob_outputDirectory : $(Build.ArtifactStagingDirectory)
2623 ${{ if eq(job_data.job, 'linux_amd64') }} :
2724 LinuxContainerImage : ' onebranch.azurecr.io/linux/ubuntu-2204:latest'
28- ARCH : amd64
29- GOARCH : amd64
3025 OS : linux
26+ ARCH : amd64
3127 GOOS : linux
28+ GOARCH : amd64
3229 ${{ elseif eq(job_data.job, 'windows_amd64') }} :
3330 LinuxContainerImage : ' onebranch.azurecr.io/linux/ubuntu-2204:latest'
34- ARCH : amd64
35- GOARCH : amd64
3631 OS : windows
32+ ARCH : amd64
3733 GOOS : windows
34+ GOARCH : amd64
3835 ${{ elseif eq(job_data.job, 'linux_arm64') }} :
3936 ob_enable_qemu : true
40- ARCH : arm64
41- GOARCH : arm64
4237 OS : linux
38+ ARCH : amd64
4339 GOOS : linux
40+ GOARCH : arm64
4441 steps :
4542 - task : DownloadPipelineArtifact@2
4643 inputs :
Original file line number Diff line number Diff line change @@ -34,15 +34,14 @@ if [[ -f /etc/debian_version ]];then
3434
3535
3636# Mariner
37+ # This is not set up to build on arm _hosts_
3738else
38- tdnf install -y llvm clang libbpf-devel nftables gcc binutils iproute
39- if [[ $ARCH =~ amd64 ]]; then
39+ tdnf install -y llvm clang libbpf-devel nftables gcc binutils iproute cross-gcc
40+ if [[ $GOARCH =~ amd64 ]]; then
4041 ARCH=x86_64-linux-gnu
41- tdnf install -y cross-gcc
4242 cp /usr/lib/" $ARCH " /ld-linux-x86-64.so.2 " $OUT_DIR " /lib/ || find /usr/lib/ -name ' ld-linux-x86-64.so.2'
43- elif [[ $ARCH =~ arm64 ]]; then
43+ elif [[ $GOARCH =~ arm64 ]]; then
4444 ARCH=aarch64-linux-gnu
45- tdnf install -y gcc-aarch64-linux-gnu
4645 cp /usr/lib/" $ARCH " /ld-linux-aarch64.so.1 " $OUT_DIR " /lib/ || find /usr/lib/ -name ' ld-linux-aarch64.so.1'
4746 fi
4847 for dir in /usr/include/" $ARCH " /* ; do
You can’t perform that action at this time.
0 commit comments