Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:

run: |
$HOME/.cargo/bin/rustup override set ${{ matrix.toolchain }}
$HOME/.cargo/bin/cargo test --release --target ${{ matrix.target }}
$HOME/.cargo/bin/cargo test --release --features portable --target ${{ matrix.target }}
$HOME/.cargo/bin/cargo test --release --locked --target ${{ matrix.target }}
$HOME/.cargo/bin/cargo test --release --locked --features portable --target ${{ matrix.target }}

# Linux tests
linux:
Expand Down Expand Up @@ -92,8 +92,8 @@ jobs:
- name: Install opencl
run: sudo apt-get install -y ocl-icd-opencl-dev
- run: ${{ matrix.deps }}
- run: cargo +${{ matrix.toolchain }} test --target ${{ matrix.target }}
- run: cargo +${{ matrix.toolchain }} test --target ${{ matrix.target }} --features portable
- run: cargo +${{ matrix.toolchain }} test --locked --target ${{ matrix.target }}
- run: cargo +${{ matrix.toolchain }} test --locked --target ${{ matrix.target }} --features portable

# macOS tests
macos:
Expand All @@ -111,8 +111,8 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
target: x86_64-apple-darwin
- run: cargo +${{ matrix.toolchain }} test
- run: cargo +${{ matrix.toolchain }} test --features portable
- run: cargo +${{ matrix.toolchain }} test --locked
- run: cargo +${{ matrix.toolchain }} test --locked --features portable

# Windows tests
windows:
Expand All @@ -132,8 +132,8 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- uses: msys2/setup-msys2@v2
- run: cargo +${{ matrix.toolchain }} test --target ${{ matrix.target }}
- run: cargo +${{ matrix.toolchain }} test --target ${{ matrix.target }} --features portable
- run: cargo +${{ matrix.toolchain }} test --locked --target ${{ matrix.target }}
- run: cargo +${{ matrix.toolchain }} test --locked --target ${{ matrix.target }} --features portable

clippy_check:
needs: set-msrv
Expand All @@ -144,8 +144,10 @@ jobs:
with:
toolchain: ${{ needs.set-msrv.outputs.msrv }}
components: clippy
- name: setup
run: rustup component add clippy
- name: Clippy
run: cargo clippy --all-features
run: cargo clippy --all-features --locked

check_fmt_and_docs:
needs: set-msrv
Expand All @@ -167,7 +169,7 @@ jobs:
run: cargo fmt --all -- --check

- name: Docs
run: cargo doc
run: cargo doc --locked

# Benchmarks need a nightly Rust
bench:
Expand All @@ -176,4 +178,4 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
- name: Run cargo bench
run: cargo +nightly bench
run: cargo +nightly bench --locked
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
Cargo.lock
Loading
Loading