Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Use portable SIMD for cached GitHub Actions objects. (#481)

Peter Sobot6cf173f5d26e
diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml
index 7232514..a7aa115 100644
--- a/.github/workflows/all.yml
+++ b/.github/workflows/all.yml
@@ -155,6 +155,7 @@ jobs:
CCACHE_IGNOREOPTIONS: "-fno-strict-overflow -fwrapv -W* -arch x86_64 arm64 -dynamic -fno-common -g -I/usr/local/opt/*"
CCACHE_LOGFILE: ${{ github.workspace }}/.ccache_log
CCACHE_DEBUG: "1"
+ USE_PORTABLE_SIMD: "1" # Use portable SIMD to avoid "Illegal instruction" on different runner CPUs
DISABLE_LTO: "1" # Speeds up un-cacheable link step which doesn't really increase performance in tests anyways
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
@@ -465,6 +466,7 @@ jobs:
CCACHE_NOINODECACHE: 1
CCACHE_IGNOREOPTIONS: "-fno-strict-overflow -fwrapv -W* -arch x86_64 arm64 -dynamic -fno-common -g -I/usr/local/opt/*"
CCACHE_LOGFILE: ${{ github.workspace }}/.ccache_log
+ USE_PORTABLE_SIMD: "1" # Use portable SIMD to avoid "Illegal instruction" on different runner CPUs
DISABLE_LTO: "1" # Speeds up un-cacheable link step which doesn't really increase performance in tests anyways
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
@@ -696,6 +698,7 @@ jobs:
CCACHE_IGNOREOPTIONS: "-fno-strict-overflow -fwrapv -W* -arch x86_64 arm64 -dynamic -fno-common -g -I/usr/local/opt/*"
CCACHE_LOGFILE: ${{ github.workspace }}/.ccache_log
CCACHE_DEBUG: "1"
+ USE_PORTABLE_SIMD: "1" # Use portable SIMD to avoid "Illegal instruction" on different runner CPUs
# Use the minimum macOS deployment target supported by our version of PyBind:
MACOSX_DEPLOYMENT_TARGET: "10.14"
# This build caching is only to speed up tests on CI, so we only care about x86_64 (macos-15-intel runners).