Skip to content

Commit

Permalink
Update workflow python
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheitman committed Oct 25, 2023
1 parent 97f8543 commit 973de53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ jobs:
- name: Create Docker image
run: bash ./src/scripts/docker/build-docker-image.sh

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0"
directory: ${{ runner.temp }}/llvm

- name: Build Wheel packages
run: |
docker run \
echo "LLVM PATH: " ${{env.LLVM_PATH}}
ls ${{env.LLVM_PATH}}
docker run \
--rm \
--volume $GITHUB_WORKSPACE:/src \
--volume ${{env.LLVM_PATH}}:/llvm \
build-triton-linux-x86_64 bash /src/src/scripts/docker/build-wheel-linux.sh
- name: Upload Wheel packages (Python 3.8)
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/docker/build-wheel-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set -e
# set -x # Debugging

DEPENDENCIES_DIR=/tmp/triton-dependencies
LLVM_DIR=/llvm
SOURCE_DIR=/src
WHEEL_DIR=$SOURCE_DIR/wheelhouse

Expand All @@ -28,7 +29,7 @@ export BITWUZLA_INTERFACE=On
export BITWUZLA_INCLUDE_DIRS=$DEPENDENCIES_DIR/bitwuzla/install/include
export BITWUZLA_LIBRARIES=$DEPENDENCIES_DIR/bitwuzla/install/lib64/libbitwuzla.so
export LLVM_INTERFACE=ON
export CMAKE_PREFIX_PATH=$($DEPENDENCIES_DIR/clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu-/bin/llvm-config --prefix)
export CMAKE_PREFIX_PATH=$LLVM_DIR

# Build Triton Python wheel package for Python 3.8.
echo "[+] Build Triton wheel package for Python 3.8"
Expand Down

0 comments on commit 973de53

Please sign in to comment.