User tools for RAPIDS GitHub Actions workflows.
This tools repo can be installed from GitHub directly with git clone or wget commands. Examples:
- name: Download gha-tools with git clone
run: |
git clone https://github.com/rapidsai/gha-tools.git -b main /tmp/gha-tools
echo "/tmp/gha-tools/tools" >> "${GITHUB_PATH}"
- name: Download gha-tools release tarball with wget
run: |
wget https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
Scripts here get much of their configuration from environment variables.
Those tend to follow these conventions:
- Environment variables should be capitalized, local variables should be lower-case
- RAPIDS-specific environment variables should be named
RAPIDS_*
- This distinguishes them from external environment variables e.g.
GITHUB_*
that are defined by GitHub Actions
- This distinguishes them from external environment variables e.g.
In GitHub Actions, the default secret GITHUB_TOKEN can be used by setting:
env:
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This project contains some scripts for managing CI artifacts.
rapids-download-{conda,wheels}-from-github
: download conda packages and wheels from the GitHub Actions artifact storerapids-get-pr-artifact
: downloads conda packages or wheels produced by pull rquest CI in another reporapids-upload-to-anaconda-github
: downloads conda packages from GitHub Actions artifact store and uploads conda channels on anaconda.orgrapids-wheels-anaconda-github
: downloads wheels from GitHub Actions artifact store and uploads them to the RAPIDS nightly index at https://pypi.anaconda.org/rapidsai-wheels-nightly/simple/rapids-package-name
: takes a package type and generate the artifact name (e.g.conda_cpp
->rmm_conda_cpp_x86_64.tar.gz
)
It also contains some scripts for working with CI artifacts on downloads.rapids.ai
.
rapids-upload-to-s3
: upload arbitrary files to thedownloads.rapids.ai
S3 bucket
For more details, see the RAPIDS maintain docs:
See CONTRIBUTING.md for instructions on how to test these scripts locally.