Skip to content

Commit

Permalink
Merge pull request #112 from scipopt/publish-crate-workflow
Browse files Browse the repository at this point in the history
Publish crate workflow
  • Loading branch information
mmghannam authored Sep 21, 2023
2 parents e40ba26 + 6eff080 commit 7f225e1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Mohammad Ghannam <[email protected]>"]
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/*"]

Expand Down

0 comments on commit 7f225e1

Please sign in to comment.