From 52aafd5f8b3584b3323c0aeb449b39c9507cadb6 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Thu, 19 Dec 2024 23:36:54 +0800 Subject: [PATCH] ci: use macOS 14 as macOS 12 is deprecated --- .github/workflows/ci.yml | 2 +- cibw_before_all.sh | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba6b609..4e43642 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, windows-2019, macos-12] + os: [ubuntu-22.04, windows-2019, macos-14] steps: - name: Checkout rz-bindgen diff --git a/cibw_before_all.sh b/cibw_before_all.sh index ad62290..1d39e9a 100644 --- a/cibw_before_all.sh +++ b/cibw_before_all.sh @@ -16,25 +16,28 @@ if command -v apt; then echo "Acquire::Check-Valid-Until no;" > /etc/apt/apt.conf.d/99no-check-valid-until fi set -e - apt update && apt install --assume-yes libclang-7-dev clang-7 llvm-7 + apt update && apt install --assume-yes libclang-7-dev clang-7 llvm-7 sudo elif command -v apk; then - apk update && apk add clang-dev + apk update && apk add clang-dev sudo elif command -v yum; then - yum -y install llvm-toolset-7.0 llvm-toolset-7.0-llvm-devel + yum -y install llvm-toolset-7.0 llvm-toolset-7.0-llvm-devel sudo # (CentOS 7) Uncomment following lines to see required paths in build log: # yum -y install centos-release-scl # source scl_source enable llvm-toolset-7.0 || true +elif command -v brew; then + brew install --require-sha swig fi pushd rizin if [[ "$OSTYPE" =~ msys* ]]; then meson setup --buildtype=release --prefix='c:/rizin' --vsenv build + meson install -C build else meson setup --buildtype=release --libdir=lib build + sudo meson install -C build fi -meson install -C build popd if command -v apt; then