]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added macos arm64 tests
authorYann Collet <Cyan4973@users.noreply.github.com>
Sun, 8 Jun 2025 22:40:15 +0000 (22:40 +0000)
committerYann Collet <Cyan4973@users.noreply.github.com>
Sun, 8 Jun 2025 22:40:15 +0000 (22:40 +0000)
and comment out windows arm64 tests due to unacceptably long queue time

.github/workflows/cmake-tests.yml

index 5d9dac00db76b3f42934d42d4cfe678ceeb34271..0dae6c763b11b91feb017aa36e20f1114c9ad971 100644 (file)
@@ -87,10 +87,10 @@ jobs:
             flags: "-A Win32"
             name: "MSVC Win32"
             runner: "windows-2022"
-          - generator: "Visual Studio 17 2022"
-            flags: "-A ARM64"
-            name: "MSVC ARM64"
-            runner: "windows-2022-arm64"
+          - generator: "Visual Studio 17 2022"
+            flags: "-A ARM64"
+            name: "MSVC ARM64"
+          #   runner: "windows-2022-arm64"  # Disabled due to very long queue times
           - generator: "MinGW Makefiles"
             flags: ""
             name: "MinGW"
@@ -116,3 +116,21 @@ jobs:
         cmake.exe -G "${{matrix.generator}}" ${{matrix.flags}} -DCMAKE_BUILD_TYPE=Debug ${{ env.COMMON_CMAKE_FLAGS }} -DZSTD_ZSTREAM_FLAGS=-T${{ env.QUICK_TEST_TIME }} -DZSTD_FUZZER_FLAGS=-T${{ env.QUICK_TEST_TIME }} -DZSTD_FULLBENCH_FLAGS=-i0 ..
         cmake.exe --build .
         ctest.exe -V -C Debug
+
+  # macOS ARM64 (Apple Silicon) specific cmake testing
+  # Validates zstd builds and runs correctly on Apple Silicon architecture
+  # Uses native ARM64 hardware for optimal performance and compatibility testing
+  cmake-macos-arm64:
+    name: "CMake macOS ARM64 (Apple Silicon)"
+    runs-on: macos-14  # ARM64 runner
+    steps:
+    - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
+    - name: "CMake build and test (ARM64)"
+      run: |
+        # Configure and build with ARM64-specific optimizations
+        cd build/cmake
+        mkdir build
+        cd build
+        cmake -DCMAKE_BUILD_TYPE=Release ${{ env.COMMON_CMAKE_FLAGS }} -DZSTD_ZSTREAM_FLAGS=-T${{ env.QUICK_TEST_TIME }} -DZSTD_FUZZER_FLAGS=-T${{ env.QUICK_TEST_TIME }} -DZSTD_FULLBENCH_FLAGS=-i1 ..
+        make -j$(sysctl -n hw.ncpu)
+        ctest -V