name: CUDA GitHub Actions on: pull_request_review_comment: types: [created] jobs: test: name: CUDA runs-on: [self-hosted, linux] if: github.event.comment.body == '/gha run cuda-builds' && contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association) timeout-minutes: 60 strategy: fail-fast: false steps: - name: Setup or update software on host machine run: | sudo apt-get update sudo apt-get install --no-install-recommends -y \ apt-transport-https \ ca-certificates \ curl \ git \ gnupg-agent \ software-properties-common \ wget curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y curl -sL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - curl -sL https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo $ID$VERSION_ID)/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list sudo apt-get update sudo apt-get install --no-install-recommends -y \ containerd.io \ docker-ce \ docker-ce-cli \ nvidia-docker2 sudo systemctl restart docker - name: Remove old folder with repository run: sudo rm -rf $GITHUB_WORKSPACE - name: Checkout repository uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true - name: Test CUDA run: | export ROOT_DOCKER_FOLDER=/LightGBM cat > docker.env < docker-script.sh <