Clamp selection size in exploitation phase #805
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
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Build and run tests | |
run: cargo test --verbose --benches | |
- name: Build and run examples | |
run: | | |
cargo run --example cvrp | |
cargo run --example pdptw | |
cargo run --example custom_constraint | |
cargo run --example custom_objective | |
- name: Run clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features --tests --examples -- -D warnings | |
release-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Release build | |
run: cargo build --release --verbose | |
wasm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Build WebAssembly | |
run: | | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
cd vrp-cli | |
wasm-pack build --target web | |
- name: Upload WebAssembly artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vrp_cli_wasm | |
path: vrp-cli/pkg/ |