Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/wheels-cuda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Wheels CUDA

on:
workflow_dispatch:
inputs:
release_tag:
description: Release tag to upload wheel assets to
required: false
type: string
push:
tags:
- "v*.*.*"
Expand Down Expand Up @@ -247,7 +252,7 @@ jobs:
set -euxo pipefail
mkdir -p wheelhouse
export LD_LIBRARY_PATH="${CUDA_LIBRARY_PATHS}:${LD_LIBRARY_PATH:-}"
auditwheel repair \
python -m auditwheel repair \
--exclude libcuda.so \
--exclude libcuda.so.1 \
--exclude libcudart.so.11.0 \
Expand All @@ -263,13 +268,13 @@ jobs:
dist/*.whl
rm dist/*.whl
cp wheelhouse/*.whl dist/
auditwheel show dist/*.whl
python -m auditwheel show dist/*.whl

- uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')
with:
files: dist/*
# Set tag_name to <tag>-cu<cuda_version>.
tag_name: ${{ github.ref_name }}-cu${{ env.CUDA_VERSION }}
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}-cu${{ env.CUDA_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 10 additions & 6 deletions .github/workflows/wheels-rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Wheels ROCm
on:
workflow_dispatch:
inputs:
release_tag:
description: Release tag to upload wheel assets to
required: false
type: string
amdgpu_targets:
description: AMDGPU targets to compile into the Linux ROCm wheel
required: false
Expand Down Expand Up @@ -81,7 +85,7 @@ jobs:
export ROCM_PATH="${ROCM_PATH:-/opt/rocm}"
export LD_LIBRARY_PATH="$ROCM_PATH/lib:$ROCM_PATH/lib64:${LD_LIBRARY_PATH:-}"
mkdir -p wheelhouse
auditwheel repair \
python -m auditwheel repair \
--exclude libamdhip64.so \
--exclude libamdhip64.so.6 \
--exclude libamdhip64.so.7 \
Expand All @@ -103,19 +107,19 @@ jobs:
dist/*.whl
rm dist/*.whl
cp wheelhouse/*.whl dist/
auditwheel show dist/*.whl
python -m auditwheel show dist/*.whl

- uses: actions/upload-artifact@v7
with:
name: wheels-rocm${{ env.ROCM_VERSION }}-${{ matrix.os }}
path: dist/*.whl

- uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')
with:
files: dist/*
# Set tag_name to <tag>-rocm<rocm_version>.
tag_name: ${{ github.ref_name }}-rocm${{ env.ROCM_VERSION }}
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}-rocm${{ env.ROCM_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -248,10 +252,10 @@ jobs:
path: dist/*.whl

- uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')
with:
files: dist/*
# Set tag_name to <tag>-hip-radeon.
tag_name: ${{ github.ref_name }}-hip-${{ matrix.name }}
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}-hip-${{ matrix.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- fix(ci): repair accelerator wheel workflow dispatch publishing

## [0.0.41]

- fix(build): reduce duplicate Linux wheel library files by @abetlen in #141
Expand Down
Loading