Skip to content

Commit

Permalink
ci: update to self hosted runner to control Nvidia driver (#50)
Browse files Browse the repository at this point in the history
* ci: update to self hosted runner to control Nvidia driver

* ci: add runs on self-hosted

* ci: keep nvida driver install out of workflow
  • Loading branch information
jacobtrombetta authored Feb 4, 2025
1 parent afc8e67 commit d9c98ea
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/test-check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
format-code:
name: Check Code
runs-on: nvidia-nc4as-t4
runs-on: self-hosted
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
PATH: ${{ github.workspace }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand All @@ -33,7 +33,7 @@ jobs:

clippy-code:
name: Clippy Code
runs-on: nvidia-nc4as-t4
runs-on: self-hosted
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
PATH: ${{ github.workspace }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand All @@ -51,7 +51,7 @@ jobs:

test-cpu:
name: Test the CPU backend
runs-on: nvidia-nc4as-t4
runs-on: self-hosted
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
PATH: ${{ github.workspace }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand All @@ -67,7 +67,7 @@ jobs:

test-gpu:
name: Test the GPU backend
runs-on: nvidia-nc4as-t4
runs-on: self-hosted
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
PATH: ${{ github.workspace }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand All @@ -78,14 +78,5 @@ jobs:
- name: Install stable toolchain
run: curl https://sh.rustup.rs -sSf | bash -s -- -y --profile minimal

- name: Install Dependencies
run: |
export DEBIAN_FRONTEND=non-interactive
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install -y nvidia-open-560
- name: Run GPU test
run: cargo test --features gpu

0 comments on commit d9c98ea

Please sign in to comment.