From 7f0920bc561e215fa625ec8f2a8b08090805ee91 Mon Sep 17 00:00:00 2001 From: Matthias Gliwka Date: Fri, 24 Nov 2023 13:11:34 +0200 Subject: [PATCH] one more time --- .github/workflows/build.yml | 4 ++-- .gitignore | 2 ++ build.sh | 17 +++++------------ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 946caf3..8b6726a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,11 +30,11 @@ jobs: shell: msys2 {0} platform: windows-x86_64 - os: macos - runner: macos-latest + runner: macos-12 #x86_64 shell: bash platform: macosx-x86_64 - os: macos - runner: macos-latest + runner: macos-12-large #arm64 shell: bash platform: macosx-arm64 - os: linux diff --git a/.gitignore b/.gitignore index dbaf041..f9a53f6 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ cppbuild/ #test artifacts db + +.DS_Store \ No newline at end of file diff --git a/build.sh b/build.sh index 559c8bf..3a5f7a7 100755 --- a/build.sh +++ b/build.sh @@ -71,27 +71,20 @@ cd .. cd vectorscan +# Disable flakey sqlite detection - only needed to build auxillary tools anyways. +> cmake/sqlite3.cmake + case $DETECTED_PLATFORM in -linux-x86_64) - CC="clang" CXX="clang++" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/.." -DCMAKE_INSTALL_LIBDIR="lib" -DPCRE_SOURCE="." -DFAT_RUNTIME=on -DBUILD_SHARED_LIBS=on . - make -j $THREADS - make install/strip - ;; -linux-arm64) +linux-x86_64|linux-arm64) CC="clang" CXX="clang++" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/.." -DCMAKE_INSTALL_LIBDIR="lib" -DPCRE_SOURCE="." -DFAT_RUNTIME=on -DBUILD_SHARED_LIBS=on . make -j $THREADS make install/strip ;; -macosx-x86_64) +macosx-x86_64|macosx-arm64) cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/.." -DCMAKE_INSTALL_LIBDIR="lib" -DARCH_OPT_FLAGS='-Wno-error' -DPCRE_SOURCE="." -DBUILD_SHARED_LIBS=on . make -j $THREADS make install/strip ;; -macosx-arm64) - CFLAGS="-target arm64-apple-macos11" CXXFLAGS="-target arm64-apple-macos11" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/.." -DCMAKE_INSTALL_LIBDIR="lib" -DARCH_OPT_FLAGS='-Wno-error' -DPCRE_SOURCE="." -DBUILD_SHARED_LIBS=on . - make -j $THREADS - make install/strip - ;; windows-x86_64) unset TEMP TMP # temp is defined in uppercase by bash and lowercase by windows, which causes problems with cmake + msbuild CXXFLAGS="/Wv:17" cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/.." -DCMAKE_INSTALL_LIBDIR="lib" -DARCH_OPT_FLAGS='' -DPCRE_SOURCE="." -DBUILD_SHARED_LIBS=on .