Skip to content

Commit

Permalink
feat: test out self hosted runner (#105)
Browse files Browse the repository at this point in the history
* feat: use self hosted runner
* fix: remove dep installs
  • Loading branch information
cryptonemo authored Sep 30, 2024
1 parent e8d6cfa commit bdc9a59
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,33 @@ env:

jobs:
check_clippy:
runs-on: ubuntu-24.04
# runs-on: ubuntu-24.04
runs-on: self-hosted
name: Clippy
steps:
- uses: actions/checkout@v4
- name: Install required packages
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
# - name: Install required packages
# run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings

check_fmt:
runs-on: ubuntu-24.04
# runs-on: ubuntu-24.04
runs-on: self-hosted
name: Checking fmt
steps:
- uses: actions/checkout@v4
- name: Run cargo fmt
run: cargo fmt --all -- --check

test:
runs-on: ubuntu-24.04
# runs-on: ubuntu-24.04
runs-on: self-hosted
name: Test
steps:
- uses: actions/checkout@v4
- name: Install required packages
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
# - name: Install required packages
# run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
# In case no GPUs are available, it's using the CPU fallback.
- name: Test
run: cargo test --verbose
Expand Down

0 comments on commit bdc9a59

Please sign in to comment.