Skip to content

Commit

Permalink
[llvm] fix aarch64 cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Jan 30, 2025
1 parent b3bacfd commit 126216d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build_test_release_eudsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,10 @@ jobs:
if: ${{ ! startsWith(matrix.os, 'windows') }}
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
if [[ "${{ matrix.os }}" == "ubuntu" ]]; then
export CCACHE_DIR=/host/$CCACHE_DIR
fi
$python3_command -m cibuildwheel "$PWD/projects/eudsl-llvmpy" --output-dir wheelhouse
else
export CMAKE_PREFIX_PATH=$PWD/llvm-install
export PIP_FIND_LINKS=$PWD/wheelhouse
$python3_command -m pip install eudsl-tblgen -f wheelhouse
$python3_command -m pip wheel "$PWD/projects/eudsl-llvmpy" -w wheelhouse -v --no-build-isolation
if [[ "${{ matrix.os }}" == "ubuntu" ]]; then
export CCACHE_DIR=/host/$CCACHE_DIR
fi
$python3_command -m cibuildwheel "$PWD/projects/eudsl-llvmpy" --output-dir wheelhouse
- name: "Build eudsl-nbgen"
run: |
Expand Down
2 changes: 1 addition & 1 deletion projects/eudsl-llvmpy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test-command = "ccache -sv"

[tool.cibuildwheel.linux]
before-all = [
"yum install -y clang",
"yum install -y clang libarchive-devel antlr-tool libxml2-devel libxslt-devel libcurl-devel",
# ccache
"echo $(if [ \"$(arch)\" == \"x86_64\" ]; then curl -sLO https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-linux-x86_64.tar.xz && tar -xf ccache-4.10.2-linux-x86_64.tar.xz && pushd ccache-4.10.2-linux-x86_64 && make install && popd; fi)",
"echo $(if [ \"$(arch)\" == \"aarch64\" ]; then dnf install -y ccache; fi)",
Expand Down

0 comments on commit 126216d

Please sign in to comment.