Skip to content

Commit

Permalink
feat(CI): run JSSP example on CI (#433)
Browse files Browse the repository at this point in the history
## Description

Adding CI to ensure that the program does not crash even on mock data as
it did couple of commits ago
  • Loading branch information
kkafar authored Oct 9, 2023
1 parent 31e393c commit 0304bd8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-jssp-solver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build & Run JSSP example on mock data

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "development", "@*/*" ]
paths:
- 'examples/jssp/**'
- '.github/workflows/run-jssp-solver.yaml'
- 'Cargo.toml'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: run-jssp-solver-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Update toolchain
run: rustup update
- name: Build
run: cargo build --example jssp --release
- name: Run JSSP example on mock data
run: cargo run --example jssp --release -- --input-file examples/jssp/instances/test-case.txt --output-dir output

0 comments on commit 0304bd8

Please sign in to comment.