-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: rename Dslice to DeviceSlice, fix clippy errs, start adding CI
- Loading branch information
1 parent
017d5da
commit 555c531
Showing
37 changed files
with
286 additions
and
228 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,62 @@ | ||
name: Rust CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
RUST_LOG: info | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
rust: | ||
name: Rust ${{ matrix.rust }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { rust: nightly, os: ubuntu-latest } | ||
- { rust: nightly, os: windows-latest } | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install CUDA | ||
uses: Jimver/cuda-toolkit@v0.2.4 | ||
id: cuda-toolkit | ||
with: | ||
cuda: '11.5.0' | ||
|
||
- name: Setup Rust | ||
uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: ${{ matrix.rust }} | ||
components: clippy,rustfmt | ||
|
||
- name: Load Rust Cache | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Rustfmt | ||
if: contains(matrix.os, 'ubuntu') | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Build | ||
run: cargo build --workspace | ||
|
||
# Don't currently test because many tests rely on the system having a CUDA GPU | ||
# - name: Test | ||
# run: cargo test --workspace | ||
|
||
- name: Clippy | ||
if: contains(matrix.os, 'ubuntu') | ||
env: | ||
RUSTFLAGS: -Dwarnings | ||
run: cargo clippy --workspace | ||
|
||
- name: Check documentation | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
run: cargo doc --workspace --all-features --document-private-items --no-deps |
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
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
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
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
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
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
Oops, something went wrong.