diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 60c3f3c..cd39ec0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -16,10 +16,8 @@ on: jobs: test-with-coverage: runs-on: ubuntu-20.04 - strategy: - fail-fast: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies (SCIPOptSuite) run: | wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-Linux-ubuntu.deb @@ -42,18 +40,15 @@ jobs: with: fail_ci_if_error: true - Linux-conda-test: + linux-conda-test: runs-on: ubuntu-latest - strategy: - fail-fast: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: conda-incubator/setup-miniconda@v2 with: activate-environment: test allow-softlinks: true - - name: Install dependencies (SCIPOptSuite) run: | conda install -y --prefix $CONDA/envs/test --channel conda-forge scip @@ -69,6 +64,23 @@ jobs: rustup toolchain install nightly RUSTFLAGS=-Zsanitizer=leak cargo +nightly test --features raw + publish-crate: + needs: + - linux-conda-test + - test-with-coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: publish crate + uses: katyo/publish-crates@v2 + with: + dry-run: ${{ github.event_name != 'release' }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # TODO: fix windows workflow # Windows-test: # env: diff --git a/CHANGELOG.md b/CHANGELOG.md index fcce72c..53351a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # CHANGELOG -## unreleased +## untracked +### Added +### Fixed +### Changed +### Removed + +## 0.2.6 ### Added - Added method `set_obj_integral` to allow specifying that the objective value is always integral. - Add support for cardinality constraints. diff --git a/Cargo.toml b/Cargo.toml index a85f67d..fb51edb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ authors = ["Mohammad Ghannam "] description = "Rust interface for SCIP" license = "Apache-2.0" repository = "https://github.com/scipopt/russcip" -version = "0.2.5" +version = "0.2.6" edition = "2021" exclude = ["data/test/*"]