Try switching from rustacuda to cust #1020
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 0 * * MON' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [nightly] | |
steps: | |
- name: Install CUDA | |
uses: Jimver/cuda-toolkit@v0.2.14 | |
with: | |
method: network | |
use-github-cache: false | |
use-local-cache: false | |
- name: Checkout the Repository | |
uses: actions/checkout@v2 | |
- name: Install the Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
profile: minimal | |
target: nvptx64-nvidia-cuda | |
override: false # FIXME | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@cargo-hack | |
- name: Check feature powerset on the CPU | |
run: | | |
cargo hack check --feature-powerset --optional-deps \ | |
--skip device \ | |
--keep-going | |
- name: Check feature powerset on CUDA | |
run: | | |
cargo hack check --feature-powerset --optional-deps \ | |
--skip host \ | |
--keep-going \ | |
--target nvptx64-nvidia-cuda | |
- name: Check all workspace targets | |
run: | | |
cargo check --workspace --all-targets | |
test: | |
name: Test Suite | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [nightly] | |
steps: | |
- name: Install CUDA | |
uses: Jimver/cuda-toolkit@v0.2.14 | |
with: | |
method: network | |
use-github-cache: false | |
use-local-cache: false | |
- name: Checkout the Repository | |
uses: actions/checkout@v2 | |
- name: Install the Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
profile: minimal | |
target: nvptx64-nvidia-cuda | |
override: false # FIXME | |
- name: Run the test-suite | |
run: | | |
cargo test --workspace --no-fail-fast | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@v2 | |
- name: Install the Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
profile: minimal | |
components: rustfmt | |
override: true | |
- name: Check the code formatting | |
run: cargo fmt --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [nightly] | |
steps: | |
- name: Install CUDA | |
uses: Jimver/cuda-toolkit@v0.2.14 | |
with: | |
method: network | |
use-github-cache: false | |
use-local-cache: false | |
- name: Checkout the Repository | |
uses: actions/checkout@v2 | |
- name: Install the Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
profile: minimal | |
components: clippy | |
target: nvptx64-nvidia-cuda | |
override: false # FIXME | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@cargo-hack | |
- name: Check feature powerset on the CPU | |
run: | | |
cargo hack clippy --feature-powerset --optional-deps \ | |
--skip device \ | |
--keep-going \ | |
-- -D warnings | |
- name: Check feature powerset on CUDA | |
run: | | |
cargo hack clippy --feature-powerset --optional-deps \ | |
--skip host \ | |
--keep-going \ | |
--target nvptx64-nvidia-cuda \ | |
-- -D warnings | |
- name: Check all workspace targets | |
run: | | |
cargo clippy --workspace --all-targets -- -D warnings |