Skip to content

Commit

Permalink
split CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Jan 11, 2024
1 parent a9c2bb2 commit 6adafa1
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 78 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cadical.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CaDiCaL

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-cadical --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat-cadical --verbose --features=all
72 changes: 0 additions & 72 deletions .github/workflows/check-test.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docs

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
doc:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run cargo doc
run: cargo doc --workspace --verbose --no-deps --features=all
- name: Check READMEs
run: |
cargo install cargo-rdme
for dir in rustsat tools cadical kissat minisat glucose; do cd ${dir} && cargo rdme --check; cd ..; done
29 changes: 29 additions & 0 deletions .github/workflows/glucose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Glucose

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-glucose --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat-glucose --verbose --features=all
29 changes: 29 additions & 0 deletions .github/workflows/kissat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Kissat

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-kissat --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat-kissat --verbose --features=all
29 changes: 29 additions & 0 deletions .github/workflows/minisat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Minisat

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-minisat --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat-minisat --verbose --features=all
45 changes: 45 additions & 0 deletions .github/workflows/rustsat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: RustSAT

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat --verbose --features=all

pystubs:
name: Test python stubs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install maturin from PyPI
uses: install-pinned/maturin@dfebcaa782a69944b584ec164e97fbbd09885352
- name: Install mypy from PyPI
uses: install-pinned/mypy@c2223951641cbb406fa8526d08f0690899f130e4
- name: Install python project
run: maturin build -m rustsat/Cargo.toml && pip install --no-index --find-links target/wheels/ rustsat
- name: Test stubs
run: stubtest --mypy-config-file rustsat/pyproject.toml --allowlist rustsat/stubtest-allowlist.txt rustsat
29 changes: 29 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: RustSAT Tools

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-tools --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat-tools --verbose --features=all
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Build & Test](https://github.com/chrjabs/rustsat/actions/workflows/rustsat.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/rustsat.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat)](https://crates.io/crates/rustsat)
[![docs.rs](https://img.shields.io/docsrs/rustsat)](https://docs.rs/rustsat)
[![PyPI](https://img.shields.io/pypi/v/rustsat)](https://pypi.org/project/rustsat)
Expand Down
2 changes: 1 addition & 1 deletion cadical/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/cadical.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/cadical.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat-cadical)](https://crates.io/crates/rustsat-cadical)
[![docs.rs](https://img.shields.io/docsrs/rustsat-cadical)](https://docs.rs/rustsat-cadical)
[![License](https://img.shields.io/crates/l/rustsat-cadical)](../LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion glucose/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/glucose.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/glucose.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat-glucose)](https://crates.io/crates/rustsat-glucose)
[![docs.rs](https://img.shields.io/docsrs/rustsat-glucose)](https://docs.rs/rustsat-glucose)
[![License](https://img.shields.io/crates/l/rustsat-glucose)](../LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion kissat/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/kissat.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/kissat.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat-kissat)](https://crates.io/crates/rustsat-kissat)
[![docs.rs](https://img.shields.io/docsrs/rustsat-kissat)](https://docs.rs/rustsat-kissat)
[![License](https://img.shields.io/crates/l/rustsat-kissat)](../LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion minisat/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/minisat.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/minisat.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat-minisat)](https://crates.io/crates/rustsat-minisat)
[![docs.rs](https://img.shields.io/docsrs/rustsat-minisat)](https://docs.rs/rustsat-minisat)
[![License](https://img.shields.io/crates/l/rustsat-minisat)](../LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion tools/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Check & Test](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/check-test.yml)
[![Build & Test](https://github.com/chrjabs/rustsat/actions/workflows/tools.yml/badge.svg)](https://github.com/chrjabs/rustsat/actions/workflows/tools.yml)
[![crates.io](https://img.shields.io/crates/v/rustsat-tools)](https://crates.io/crates/rustsat-tools)
[![docs.rs](https://img.shields.io/docsrs/rustsat-tools)](https://docs.rs/rustsat-tools)
[![License](https://img.shields.io/crates/l/rustsat-tools)](../LICENSE)
Expand Down

0 comments on commit 6adafa1

Please sign in to comment.