From 7258af7125be056db0cdb6b0d020ba41a6ece0f6 Mon Sep 17 00:00:00 2001 From: Meow King Date: Tue, 30 Jul 2024 16:55:50 +0800 Subject: [PATCH] fix(ci) --- .github/workflows/buildwheels.yml | 2 +- pyproject.toml | 2 +- scripts/action/build_llvm.sh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildwheels.yml b/.github/workflows/buildwheels.yml index 2b6c174..ff3f3c9 100644 --- a/.github/workflows/buildwheels.yml +++ b/.github/workflows/buildwheels.yml @@ -12,7 +12,7 @@ jobs: # macos-13 is an intel runner, macos-14 is apple silicon # os: [ubuntu-latest, windows-latest, macos-13, macos-14] # llvm 18.1.8 official release doens't provide macos binary for now - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 02c53aa..a6cbc9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ archs = "auto64" skip = "*musllinux*" # doesn't find LLVM musl build environment = { SKBUILD_CMAKE_ARGS="-DLLVM_DIR=/host/home/runner/work/llvmpym/llvm-build/lib/cmake/llvm"} before-all = "bash ./scripts/action/build_llvm.sh" -before-build = "echo hello && echo $SKBUILD_CMAKE_ARGS" +before-build = "pwd" # test-command = "pytest {project}/tests" # Run pytest to ensure that the package was correctly built # test-requires = "pytest" diff --git a/scripts/action/build_llvm.sh b/scripts/action/build_llvm.sh index dd6ce87..f0eb67c 100644 --- a/scripts/action/build_llvm.sh +++ b/scripts/action/build_llvm.sh @@ -32,9 +32,11 @@ elif [[ "$sys" == "Darwin" ]]; then # Mac (only for 14 or later, i.e. apple sili echo 1 fi +pwd curl -L -o ./llvm-build.tar.xz "$url" tar -xf ./llvm-build.tar.xz mv "$root_llvm_dir_name" ./llvm-build +ls -lht if [[ "$manual_build" == false ]]; then exit