-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
37 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 |
---|---|---|
|
@@ -13,28 +13,11 @@ env: | |
RUST_FMT_CHANNEL: nightly | ||
|
||
jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# crate: [] | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Install Rust toolchain | ||
# run: | | ||
# rustup toolchain install --profile minimal --no-self-update ${{ env.RUST_CHANNEL }} | ||
# rustup default ${{ env.RUST_CHANNEL }} | ||
# - name: Cache dependencies | ||
# uses: Swatinem/rust-cache@v2 | ||
# - name: Build ${{ matrix.crate }} | ||
# run: cargo install --root dist/ --path crates/${{ matrix.crate }} | ||
# - name: Upload build artifact | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: ${{ matrix.crate }}-${{ matrix.os }} | ||
# path: dist/ | ||
test: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -43,10 +26,10 @@ jobs: | |
run: | | ||
rustup toolchain install --profile minimal --no-self-update ${{ env.RUST_CHANNEL }} | ||
rustup default ${{ env.RUST_CHANNEL }} | ||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Run cargo test | ||
run: cargo test --all-features | ||
run: cargo test --features splr,cadical,kissat,intel-sat,ipasir-up | ||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -57,8 +40,8 @@ jobs: | |
run: | | ||
rustup toolchain install --profile minimal --component clippy --no-self-update ${{ env.RUST_CHANNEL }} | ||
rustup default ${{ env.RUST_CHANNEL }} | ||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Run clippy | ||
run: cargo clippy --tests --features splr,cadical,kissat,intel-sat,ipasir-up -- -D warnings | ||
format: | ||
|
@@ -73,14 +56,3 @@ jobs: | |
rustup default ${{ env.RUST_CHANNEL }} | ||
- name: Run cargo format | ||
run: cargo +nightly fmt --all --check | ||
# TODO: Re-enable after first release | ||
# semver: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# - name: Check semver | ||
# uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
# with: | ||
# crate-name: pindakaas |