From 257bd65b2e0467603bfeb8cd9288983fd7243e56 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 30 Sep 2023 16:59:05 +0200 Subject: [PATCH 1/6] Add cmake-based arm64 xbuild to Azure CI --- azure-pipelines.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ff56ad00b..07efbe26b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -284,6 +284,22 @@ jobs: /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 +- job: OSX_xbuild_DYN_ARM64_cmake + pool: + vmImage: 'macOS-11' + variables: + CC: /Applications/Xcode_12.5.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang + CFLAGS: -O2 -Wno-macro-redefined -isysroot /Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -arch arm64 + steps: + - script: | + ls /Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs + /Applications/Xcode_12.5.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 --print-supported-cpus + /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version + mkdir build + cd build + cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DNUM_THREADS=32 NOFORTRAN=1 .. + make + - job: ALPINE_MUSL pool: vmImage: 'ubuntu-latest' From 950937c36ad1ada350619864a2c3ed30caf93828 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 30 Sep 2023 17:43:36 +0200 Subject: [PATCH 2/6] Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 07efbe26b..c14a6e3a8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,4 @@ -trigger: + trigger: # start a new build for every push batch: False branches: @@ -297,7 +297,7 @@ jobs: /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version mkdir build cd build - cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DNUM_THREADS=32 NOFORTRAN=1 .. + cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_C_COMPILER=clang -DNUM_THREADS=32 NOFORTRAN=1 .. make - job: ALPINE_MUSL From 12fcc5bae700fa83272fe22ff5a97221c363079e Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 30 Sep 2023 21:53:42 +0200 Subject: [PATCH 3/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c14a6e3a8..29f94756c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,4 @@ - trigger: +trigger: # start a new build for every push batch: False branches: From a2e22c2265cfed1121810fdae334a14ec1262e8c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 30 Sep 2023 23:19:19 +0200 Subject: [PATCH 4/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29f94756c..9b6c24dc1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -297,7 +297,7 @@ jobs: /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version mkdir build cd build - cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_C_COMPILER=clang -DNUM_THREADS=32 NOFORTRAN=1 .. + cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_CROSS_COMPILING=1 -DNUM_THREADS=32 NOFORTRAN=1 .. make - job: ALPINE_MUSL From 5b7183fbc386b56408e522823cbb0fe7f802f07b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 1 Oct 2023 10:22:17 +0200 Subject: [PATCH 5/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9b6c24dc1..92f9a365a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -297,7 +297,7 @@ jobs: /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version mkdir build cd build - cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_CROSS_COMPILING=1 -DNUM_THREADS=32 NOFORTRAN=1 .. + cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_CROSSCOMPILING=1 -DNUM_THREADS=32 NOFORTRAN=1 .. make - job: ALPINE_MUSL From 9094edb8540faa7475128f67902bd9a5049af7a2 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 1 Oct 2023 12:35:23 +0200 Subject: [PATCH 6/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 92f9a365a..3509aa927 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -297,7 +297,7 @@ jobs: /Applications/Xcode_11.7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version mkdir build cd build - cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_CROSSCOMPILING=1 -DNUM_THREADS=32 NOFORTRAN=1 .. + cmake -DTARGET=ARMV8 -DDYNAMIC_ARCH=1 -DCMAKE_SYSTEM_NAME=Linux -DCNAME_SYSTEM_VERSION=6.2 -DCMAKE_CROSSCOMPILING=1 -DNUM_THREADS=32 -DNOFORTRAN=1 .. make - job: ALPINE_MUSL