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
60 changes: 48 additions & 12 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,23 @@ jobs:
PYTHON_VERSION_FORMATTED="312" # see above
REPO_DIR=$(pwd)

if [[ ${{ inputs.is-release }} == "true" ]]; then
FILE_HASH="*"
COMMIT_HASH="${{ inputs.git-tag }}"
else
FILE_HASH="${{ github.sha }}"
COMMIT_HASH="${{ github.sha }}"
fi

# make outputs from the previous job as env vars
CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-linux-64"
echo "COMMIT_HASH=${COMMIT_HASH}" >> $GITHUB_ENV
echo "CUDA_CORE_ARTIFACT_BASENAME=${CUDA_CORE_ARTIFACT_BASENAME}" >> $GITHUB_ENV
echo "CUDA_CORE_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${{ github.sha }}" >> $GITHUB_ENV
echo "CUDA_CORE_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${FILE_HASH}" >> $GITHUB_ENV
echo "CUDA_CORE_ARTIFACTS_DIR=$(realpath "$REPO_DIR/cuda_core/dist")" >> $GITHUB_ENV
CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${{ inputs.build-ctk-ver }}-linux-64"
echo "CUDA_BINDINGS_ARTIFACT_BASENAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}" >> $GITHUB_ENV
echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${{ github.sha }}" >> $GITHUB_ENV
echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${FILE_HASH}" >> $GITHUB_ENV
echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "$REPO_DIR/cuda_bindings/dist")" >> $GITHUB_ENV

- name: Download cuda-python build artifacts
Expand All @@ -101,30 +110,51 @@ jobs:
name: cuda-python-wheel
path: .
run-id: ${{ inputs.run-id }}
github-token: ${{ github.token }}

- name: Display structure of downloaded cuda-python artifacts
run: |
pwd
ls -lahR .

- name: Download cuda.bindings build artifacts
if: ${{ !inputs.is-release }}
uses: actions/download-artifact@v4
with:
name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}

- name: Download cuda.bindings build artifacts
if: ${{ inputs.is-release }}
uses: actions/download-artifact@v4
with:
pattern: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
merge-multiple: true
path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
run-id: ${{ inputs.run-id }}
github-token: ${{ github.token }}

- name: Display structure of downloaded cuda.bindings artifacts
run: |
pwd
ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR

- name: Download cuda.core build artifacts
if: ${{ !inputs.is-release }}
uses: actions/download-artifact@v4
with:
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}

- name: Download cuda.core build artifacts
if: ${{ inputs.is-release }}
uses: actions/download-artifact@v4
with:
pattern: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
merge-multiple: true
path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
run-id: ${{ inputs.run-id }}
github-token: ${{ github.token }}

- name: Display structure of downloaded cuda.core build artifacts
run: |
Expand Down Expand Up @@ -156,12 +186,12 @@ jobs:

- name: Build all docs
if: ${{ inputs.component == 'all' }}
env:
DOC_ACTION: ${{ (inputs.is-release && '') || 'latest-only' }}
run: |
pushd cuda_python/docs/
./build_all_docs.sh $DOC_ACTION
if [[ -z "$DOC_ACTION" ]]; then
if [[ "${{ inputs.is-release }}" == "false" ]]; then
./build_all_docs.sh latest-only
else
./build_all_docs.sh
# At release time, we don't want to update the latest docs
rm -rf build/html/latest
fi
Expand All @@ -171,19 +201,25 @@ jobs:

- name: Build component docs
if: ${{ inputs.component != 'all' }}
env:
DOC_ACTION: ${{ (inputs.is-release && '') || 'latest-only' }}
run: |
COMPONENT=$(echo "${{ inputs.component }}" | tr '-' '_')
pushd ${COMPONENT}/docs/
./build_docs.sh $DOC_ACTION
if [[ -z "$DOC_ACTION" ]]; then
if [[ "${{ inputs.is-release }}" == "false" ]]; then
./build_docs.sh latest-only
else
./build_docs.sh
# At release time, we don't want to update the latest docs
rm -rf build/html/latest
fi
ls -l build
popd
mv ${COMPONENT}/docs/build/html/* artifacts/docs/
if [[ "${{ inputs.component }}" != "cuda-python" ]]; then
TARGET="${{ inputs.component }}"
mkdir -p artifacts/docs/${TARGET}
else
TARGET=""
fi
mv ${COMPONENT}/docs/build/html/* artifacts/docs/${TARGET}

# TODO: Consider removing this step?
- name: Upload doc artifacts
Expand All @@ -208,5 +244,5 @@ jobs:
git-config-email: cuda-python-bot@users.noreply.github.com
folder: artifacts/docs/
target-folder: docs/
commit-message: "Deploy ${{ (inputs.is-release && 'release') || 'latest' }} docs: ${{ github.sha }}"
commit-message: "Deploy ${{ (inputs.is-release && 'release') || 'latest' }} docs: ${{ env.COMMIT_HASH }}"
clean: false
5 changes: 2 additions & 3 deletions .github/workflows/release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: >
gh release upload
${{ inputs.git-tag }}
release/*
--clobber "${{ github.ref_name }}"
--clobber "${{ inputs.git-tag }}"
--repo "${{ github.repository }}"
release/*
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ jobs:
run: |
gh run download ${{ inputs.run-id }} -p "${{ inputs.component }}*" -R ${{ github.repository }}
mkdir dist
for p in "${{ inputs.component }}*"; do
for p in ${{ inputs.component }}*
do
mv ${p}/*.whl dist/
done
rmdir "${{ inputs.component }}*"
rmdir ${{ inputs.component }}*

- name: Publish package distributions to PyPI
if: ${{ inputs.wheel-dst == 'pypi' }}
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings/docs/source/release/11.8.6-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Released on January 24, 2025.

## Highlights

- Support Python 3.13
- Add an optional dependency on the CUDA NVRTC wheel
- Enable discovery and loading of shared libraries from CUDA wheels
- `cuda-python` is now a meta package, currently depending only on `cuda-bindings` ([see RFC](https://github.com/NVIDIA/cuda-python/issues/105))
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings/docs/source/release/12.8.0-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Released on January 24, 2025.

## Highlights

- Support Python 3.13
- Add bindings for nvJitLink (requires nvJitLink from CUDA 12.3 or above)
- Add optional dependencies on CUDA NVRTC and nvJitLink wheels
- Enable discovery and loading of shared libraries from CUDA wheels
Expand Down
1 change: 1 addition & 0 deletions cuda_python/docs/source/release/11.8.6-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Released on January 24, 2025.

## Highlights

- Support Python 3.13
- Add optional dependencies on the CUDA NVRTC wheel
- Enable discovery and loading of shared libraries from CUDA wheels
- `cuda-python` is now a meta package, currently depending only on `cuda-bindings` ([see RFC](https://github.com/NVIDIA/cuda-python/issues/105))
1 change: 1 addition & 0 deletions cuda_python/docs/source/release/12.8.0-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Released on January 24, 2025.

## Highlights

- Support Python 3.13
- Add bindings for nvJitLink (requires nvJitLink from CUDA 12.3 or above)
- Add optional dependencies on CUDA NVRTC and nvJitLink wheels
- Enable discovery and loading of shared libraries from CUDA wheels
Expand Down
Loading