Skip to content

Commit

Permalink
More tweaks to packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Aug 23, 2023
1 parent b73b6c2 commit 6ad6d74
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/pkgci_build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
env:
CACHE_DIR: ${{ github.workspace }}/.iree-container-cache
MANYLINUX_DOCKER_IMAGE: ghcr.io/nod-ai/manylinux_x86_64:main
PACKAGE_SUFFIX: "-asserts"
steps:
- name: Prefetch Docker
run: |
Expand All @@ -39,7 +40,7 @@ jobs:
run: |
cat << EOF > version_info.json
{
"package-suffix": "",
"package-suffix": "${PACKAGE_SUFFIX}",
"package-version": "${{ inputs.package_version }}",
"iree-revision": "$(cd ../iree && git rev-parse HEAD)"
}
Expand All @@ -53,13 +54,16 @@ jobs:
key: iree-pkgci-linux-release-x86_64-v1-${{ github.sha }}
restore-keys: |
iree-pkgci-linux-release-x86_64-v1-
- name: Build
- name: Wait for docker pull
run: |
wait
- name: Build
run: |
export cache_dir="${{ env.CACHE_DIR }}"
export output_dir="${{ github.workspace }}/wheelhouse"
export toolchain_suffix=release
export manylinux_docker_image="$MANYLINUX_DOCKER_IMAGE"
export package_suffix="$PACKAGE_SUFFIX"
# If just iterating locally, uncomment this to build a cheap wheel.
# export packages="iree-runtime"
bash build_tools/pkgci/build_linux_packages.sh
Expand Down Expand Up @@ -87,6 +91,7 @@ jobs:
env:
CACHE_DIR: ${{ github.workspace }}/.iree-container-cache
MANYLINUX_DOCKER_IMAGE: ghcr.io/nod-ai/manylinux_x86_64:main
PACKAGE_SUFFIX: "-asserts"
steps:
- name: Prefetch Docker
run: |
Expand All @@ -100,9 +105,9 @@ jobs:
run: |
cat << EOF > version_info.json
{
"package-suffix": "-asserts",
"package-suffix": "${PACKAGE_SUFFIX}",
"package-version": "${{ inputs.package_version }}",
"iree-revision": "$(cd ../iree && git rev-parse HEAD)",
"iree-revision": "$(cd ../iree && git rev-parse HEAD)"
}
EOF
realpath version_info.json
Expand All @@ -114,12 +119,16 @@ jobs:
key: iree-pkgci-linux-release-asserts-x86_64-v1-${{ github.sha }}
restore-keys: |
iree-pkgci-linux-release-asserts-x86_64-v1-
- name: Wait for docker pull
run: |
wait
- name: Build
run: |
export cache_dir="${{ env.CACHE_DIR }}"
export output_dir="${{ github.workspace }}/wheelhouse"
export toolchain_suffix=release_asserts
export manylinux_docker_image="$MANYLINUX_DOCKER_IMAGE"
export package_suffix="$PACKAGE_SUFFIX"
# If just iterating locally, uncomment this to build a cheap wheel.
# export packages="iree-runtime"
bash build_tools/pkgci/build_linux_packages.sh
Expand Down
3 changes: 2 additions & 1 deletion build_tools/pkgci/build_linux_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function build_wheel() {

function build_iree_runtime() {
# We install the needed build deps below for the tools.
IREE_RUNTIME_BUILD_TRACY=ON IREE_RUNTIME_BUILD_TRACY_TOOLS=ON build_wheel runtime/
IREE_RUNTIME_BUILD_TRACY=ON IREE_RUNTIME_BUILD_TRACY_TOOLS=ON \
build_wheel runtime/
}

function build_iree_compiler() {
Expand Down

0 comments on commit 6ad6d74

Please sign in to comment.