Skip to content

Commit 1a706f3

Browse files
authored
fix(ci): simplify dev release install instructions to use install.sh (#453)
1 parent 3566e55 commit 1a706f3

File tree

2 files changed

+19
-39
lines changed

2 files changed

+19
-39
lines changed

.github/workflows/release-canary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: "Release tag to test (e.g. devel, v1.2.3)"
7+
description: "Release tag to test (e.g. dev, v1.2.3)"
88
required: true
99
type: string
1010
workflow_run:
@@ -115,7 +115,7 @@ jobs:
115115
else
116116
WORKFLOW_NAME="${{ github.event.workflow_run.name }}"
117117
if [ "$WORKFLOW_NAME" = "Release Dev" ]; then
118-
echo "tag=devel" >> "$GITHUB_OUTPUT"
118+
echo "tag=dev" >> "$GITHUB_OUTPUT"
119119
elif [ "$WORKFLOW_NAME" = "Release Tag" ]; then
120120
TAG="${{ github.event.workflow_run.head_branch }}"
121121
if [ -z "$TAG" ]; then

.github/workflows/release-dev.yml

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ jobs:
305305
retention-days: 5
306306

307307
# ---------------------------------------------------------------------------
308-
# Create / update the devel GitHub Release with CLI binaries and wheels
308+
# Create / update the dev GitHub Release with CLI binaries and wheels
309309
# ---------------------------------------------------------------------------
310-
release-devel:
311-
name: Release Devel
310+
release-dev:
311+
name: Release Dev
312312
needs: [build-cli-linux, build-cli-macos, build-python-wheels]
313313
runs-on: build-amd64
314314
timeout-minutes: 10
@@ -335,7 +335,7 @@ jobs:
335335
sha256sum *.tar.gz *.whl > openshell-checksums-sha256.txt
336336
cat openshell-checksums-sha256.txt
337337
338-
- name: Prune stale wheel assets from devel release
338+
- name: Prune stale wheel assets from dev release
339339
uses: actions/github-script@v7
340340
env:
341341
WHEEL_VERSION: ${{ needs.build-python-wheels.outputs.wheel_version }}
@@ -349,20 +349,20 @@ jobs:
349349
core.info(`WHEEL_VERSION: ${wheelVersion}`);
350350
core.info(`CURRENT_PREFIX: ${currentPrefix}`);
351351
352-
// Fetch the devel release
352+
// Fetch the dev release
353353
let release;
354354
try {
355-
release = await github.rest.repos.getReleaseByTag({ owner, repo, tag: 'devel' });
355+
release = await github.rest.repos.getReleaseByTag({ owner, repo, tag: 'dev' });
356356
} catch (err) {
357357
if (err.status === 404) {
358-
core.info('No existing devel release found; skipping wheel pruning.');
358+
core.info('No existing dev release found; skipping wheel pruning.');
359359
return;
360360
}
361361
throw err;
362362
}
363363
364364
const assets = release.data.assets;
365-
core.info(`=== Current devel release assets (${assets.length} total) ===`);
365+
core.info(`=== Current dev release assets (${assets.length} total) ===`);
366366
for (const a of assets) {
367367
core.info(` ${String(a.id).padStart(12)} ${a.name}`);
368368
}
@@ -382,51 +382,31 @@ jobs:
382382
}
383383
core.info(`Summary: kept=${kept}, deleted=${deleted}`);
384384
385-
- name: Move devel tag
385+
- name: Move dev tag
386386
run: |
387387
git config user.name "github-actions[bot]"
388388
git config user.email "github-actions[bot]@users.noreply.github.com"
389-
git tag -fa devel -m "Latest Devel" "${GITHUB_SHA}"
390-
git push --force origin devel
389+
git tag -fa dev -m "Latest Dev" "${GITHUB_SHA}"
390+
git push --force origin dev
391391
392392
- name: Create / update GitHub Release
393393
uses: softprops/action-gh-release@v2
394394
with:
395395
name: OpenShell Development Build
396396
prerelease: true
397-
tag_name: devel
397+
tag_name: dev
398398
target_commitish: ${{ github.sha }}
399399
body: |
400-
This build is automatically built on every commit to main that passes CI.
400+
This build is automatically published on every commit to main that passes CI.
401401
402402
> **NOTE**: This is a development build, not a tagged release, and may be unstable.
403403
404404
### Quick install
405405
406-
Requires the [GitHub CLI (`gh`)](https://cli.github.com) to be installed and authenticated.
407-
408-
```bash
409-
sh -c 'ARCH=$(uname -m); OS=$(uname -s); \
410-
case "${OS}-${ARCH}" in \
411-
Linux-x86_64) ASSET="openshell-x86_64-unknown-linux-musl.tar.gz" ;; \
412-
Linux-aarch64) ASSET="openshell-aarch64-unknown-linux-musl.tar.gz" ;; \
413-
Darwin-arm64) ASSET="openshell-aarch64-apple-darwin.tar.gz" ;; \
414-
*) echo "Unsupported platform: ${OS}-${ARCH}" >&2; exit 1 ;; \
415-
esac; \
416-
gh release download devel --repo NVIDIA/OpenShell --pattern "${ASSET}" -O - \
417-
| tar xz \
418-
&& sudo install -m 755 openshell /usr/local/bin/openshell'
406+
```
407+
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | OPENSHELL_VERSION=dev sh
419408
```
420409
421-
### Assets
422-
423-
| File | Platform | Install |
424-
|------|----------|---------|
425-
| `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` |
426-
| `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` |
427-
| `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` |
428-
| `openshell-*.whl` | Python wheels | `gh release download devel --repo NVIDIA/OpenShell --pattern "openshell-*.whl"` |
429-
| `openshell-checksums-sha256.txt` | — | SHA256 checksums for all archives |
430410
files: |
431411
release/openshell-x86_64-unknown-linux-musl.tar.gz
432412
release/openshell-aarch64-unknown-linux-musl.tar.gz
@@ -436,7 +416,7 @@ jobs:
436416
437417
trigger-wheel-publish:
438418
name: Trigger Wheel Publish
439-
needs: [compute-versions, build-python-wheels, release-devel]
419+
needs: [compute-versions, build-python-wheels, release-dev]
440420
runs-on: [self-hosted, nv]
441421
timeout-minutes: 10
442422
steps:
@@ -462,7 +442,7 @@ jobs:
462442
-F "variables[PIPELINE_ACTION]=publish_wheels" \
463443
-F "variables[GITHUB_REPOSITORY]=${GITHUB_REPOSITORY}" \
464444
-F "variables[COMMIT_SHA]=${GITHUB_SHA}" \
465-
-F "variables[RELEASE_TAG]=devel" \
445+
-F "variables[RELEASE_TAG]=dev" \
466446
-F "variables[RELEASE_VERSION]=${RELEASE_VERSION}" \
467447
-F "variables[RELEASE_KIND]=dev" \
468448
-F "variables[WHEEL_FILENAMES]=${WHEEL_FILENAMES}" \

0 commit comments

Comments
 (0)