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
21 changes: 18 additions & 3 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ jobs:
aws s3 ls "s3://${NAV_PYPI_S3_BUCKET}/${S3_PREFIX}/"
echo "s3_prefix=${S3_PREFIX}" >> "$GITHUB_OUTPUT"

- name: Upload wheel artifacts
uses: actions/upload-artifact@v4
with:
name: python-wheels
path: target/wheels/*.whl
retention-days: 5

publish-python:
name: Publish Python
needs: [build-python-wheels]
Expand Down Expand Up @@ -371,11 +378,11 @@ jobs:
retention-days: 5

# ---------------------------------------------------------------------------
# Create / update the devel GitHub Release with CLI binaries
# Create / update the devel GitHub Release with CLI binaries and wheels
# ---------------------------------------------------------------------------
release-devel:
name: Release Devel
needs: [build-cli-linux, build-cli-macos]
needs: [build-cli-linux, build-cli-macos, build-python-wheels]
runs-on: build-amd64
timeout-minutes: 10
steps:
Expand All @@ -388,11 +395,17 @@ jobs:
path: release/
merge-multiple: true

- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
name: python-wheels
path: release/

- name: Generate checksums
run: |
set -euo pipefail
cd release
sha256sum *.tar.gz > openshell-checksums-sha256.txt
sha256sum *.tar.gz *.whl > openshell-checksums-sha256.txt
cat openshell-checksums-sha256.txt

- name: Move devel tag
Expand Down Expand Up @@ -438,9 +451,11 @@ jobs:
| `openshell-x86_64-unknown-linux-musl.tar.gz` | Linux x86_64 | `gh release download devel --repo NVIDIA/OpenShell --pattern "openshell-x86_64-unknown-linux-musl.tar.gz" -O - \| tar xz && sudo install -m 755 openshell /usr/local/bin/openshell` |
| `openshell-aarch64-unknown-linux-musl.tar.gz` | Linux aarch64 / ARM64 | `gh release download devel --repo NVIDIA/OpenShell --pattern "openshell-aarch64-unknown-linux-musl.tar.gz" -O - \| tar xz && sudo install -m 755 openshell /usr/local/bin/openshell` |
| `openshell-aarch64-apple-darwin.tar.gz` | macOS Apple Silicon | `gh release download devel --repo NVIDIA/OpenShell --pattern "openshell-aarch64-apple-darwin.tar.gz" -O - \| tar xz && sudo install -m 755 openshell /usr/local/bin/openshell` |
| `openshell-*.whl` | Python wheels | `gh release download devel --repo NVIDIA/OpenShell --pattern "openshell-*.whl"` |
| `openshell-checksums-sha256.txt` | — | SHA256 checksums for all archives |
files: |
release/openshell-x86_64-unknown-linux-musl.tar.gz
release/openshell-aarch64-unknown-linux-musl.tar.gz
release/openshell-aarch64-apple-darwin.tar.gz
release/*.whl
release/openshell-checksums-sha256.txt
21 changes: 18 additions & 3 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ jobs:
aws s3 ls "s3://${NAV_PYPI_S3_BUCKET}/${S3_PREFIX}/"
echo "s3_prefix=${S3_PREFIX}" >> "$GITHUB_OUTPUT"

- name: Upload wheel artifacts
uses: actions/upload-artifact@v4
with:
name: python-wheels
path: target/wheels/*.whl
retention-days: 5

publish-python:
name: Publish Python
needs: [build-python-wheels]
Expand Down Expand Up @@ -379,11 +386,11 @@ jobs:
retention-days: 5

# ---------------------------------------------------------------------------
# Create a tagged GitHub Release with CLI binaries
# Create a tagged GitHub Release with CLI binaries and wheels
# ---------------------------------------------------------------------------
release:
name: Release
needs: [compute-versions, build-cli-linux, build-cli-macos, publish-python, tag-ghcr-release]
needs: [compute-versions, build-cli-linux, build-cli-macos, build-python-wheels, publish-python, tag-ghcr-release]
runs-on: build-amd64
timeout-minutes: 10
steps:
Expand All @@ -396,11 +403,17 @@ jobs:
path: release/
merge-multiple: true

- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
name: python-wheels
path: release/

- name: Generate checksums
run: |
set -euo pipefail
cd release
sha256sum *.tar.gz > openshell-checksums-sha256.txt
sha256sum *.tar.gz *.whl > openshell-checksums-sha256.txt
cat openshell-checksums-sha256.txt

- name: Create GitHub Release
Expand Down Expand Up @@ -444,9 +457,11 @@ jobs:
| `openshell-x86_64-unknown-linux-musl.tar.gz` | Linux x86_64 |
| `openshell-aarch64-unknown-linux-musl.tar.gz` | Linux aarch64 / ARM64 |
| `openshell-aarch64-apple-darwin.tar.gz` | macOS Apple Silicon |
| `openshell-*.whl` | Python wheels |
| `openshell-checksums-sha256.txt` | SHA256 checksums for all archives |
files: |
release/openshell-x86_64-unknown-linux-musl.tar.gz
release/openshell-aarch64-unknown-linux-musl.tar.gz
release/openshell-aarch64-apple-darwin.tar.gz
release/*.whl
release/openshell-checksums-sha256.txt
Loading