This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andy-neuma
committed
Jun 6, 2024
1 parent
9e7c545
commit 74568f4
Showing
6 changed files
with
144 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: cp assets | ||
description: "cp whl and tarfile to Google storage 'neuralmagic-public-pypi/dist'" | ||
inputs: | ||
python: | ||
description: 'python version, e.g. 3.10.12' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- id: mv_assets | ||
run: | | ||
VERSION_BASE=$(./.github/scripts/convert-version ${{ inputs.python }}) | ||
WHL=$(find assets -type f -name "*nm_magic_wand*${VERSION_BASE}*.whl") | ||
WHL_FILE=$(basename ${WHL}) | ||
echo "whl: ${WHL}" | ||
echo "whl_file: ${WHL_FILE}" | ||
TAR=$(find assets -path "*${{ inputs.python }}-nm-magic-wand*.tar.gz" -type f -name "nm-magic-wand*.tar.gz") | ||
TAR_FILE=$(basename ${TAR}) | ||
echo "tar: ${TAR}" | ||
echo "tar_file: ${TAR_FILE}" | ||
gcloud storage cp ${WHL} gs://neuralmagic-public-pypi/dist/${WHL_FILE} | ||
gcloud storage cp ${TAR} gs://neuralmagic-public-pypi/dist/${TAR_FILE} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: nm upload assets to GCP | ||
run-name: ${{ github.actor }} publishing whl on branch '${{ github.ref}}' | ||
on: | ||
|
||
workflow_call: | ||
inputs: | ||
label: | ||
description: "requested runner label (specifies instance)" | ||
type: string | ||
required: true | ||
timeout: | ||
description: "time limit for run in minutes " | ||
type: string | ||
required: true | ||
gitref: | ||
description: 'git commit hash or branch name' | ||
type: string | ||
required: true | ||
python: | ||
description: "python version, e.g. 3.10.12" | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
|
||
PUBLISH: | ||
runs-on: ${{ inputs.label }} | ||
timeout-minutes: ${{ fromJson(inputs.timeout) }} | ||
|
||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
|
||
steps: | ||
|
||
- name: checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ inputs.gitref }} | ||
submodules: recursive | ||
|
||
- name: setenv | ||
id: setenv | ||
uses: ./.github/actions/nm-set-env/ | ||
|
||
- name: download assets | ||
id: download_whl | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: assets | ||
|
||
# GCP | ||
- name: 'Authenticate to Google Cloud' | ||
id: auth | ||
uses: google-github-actions/[email protected] | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT }} | ||
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ secrets.GCP_SA }} | ||
|
||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
with: | ||
version: '>= 473.0.0' | ||
|
||
- name: cp assets | ||
id: cp-assets | ||
uses: ./.github/actions/nm-cp-assets/ | ||
with: | ||
python: ${{ inputs.python }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters