Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,34 @@ env:

jobs:
check_clippy:
# runs-on: ubuntu-24.04
runs-on: self-hosted
runs-on: ubuntu-24.04
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: Install cargo clippy
run: rustup component add clippy
- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings

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

test:
# runs-on: ubuntu-24.04
runs-on: self-hosted
runs-on: ubuntu-24.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@galargh For future reference: this test should ideally run on a machine with a GPU

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