-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add GPU tests on
merge_group
(#234)
- Loading branch information
1 parent
52a57d6
commit ad94e92
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Runs the test suite on a self-hosted GPU machine with CUDA and OpenCL 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 --profile ci --cargo-profile dev-ci --features cuda | ||
opencl: | ||
name: Rust tests on OpenCL | ||
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: 'opencl' | ||
- 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: OpenCL tests | ||
run: | | ||
cargo nextest run --profile ci --cargo-profile dev-ci --features cuda,opencl |