Skip to content

Commit

Permalink
Test GPU CI
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Jan 5, 2024
1 parent 4ee6765 commit 6544743
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gpu-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Runs the test suite on a self-hosted GPU machine with CUDA enabled
name: GPU tests

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [dev]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
cuda:
name: Rust tests on CUDA
if: github.event_name != 'pull_request' || github.event.action == 'enqueued'
runs-on: [self-hosted, gpu-ci]
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/gpu-setup
with:
gpu-framework: 'cuda'
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: CUDA tests
run: |
cargo nextest run --release --features dont-implement-sort

0 comments on commit 6544743

Please sign in to comment.