Skip to content

Commit b6b6c00

Browse files
committed
Add build.yml
1 parent 37ef179 commit b6b6c00

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
build:
8+
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
15+
python-version: ["3.8"]
16+
17+
env:
18+
GENERALIZED_ASSIGNMENT_DATA: ${{ github.workspace }}/data/
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install nauty
28+
run: sudo apt-get install -y libnauty2-dev
29+
if: matrix.os == 'ubuntu-latest'
30+
- name: Install CLP (MacOS)
31+
run: |
32+
brew install clp
33+
brew install cbc
34+
if: ${{ (matrix.os == 'macos-13') || (matrix.os == 'macos-latest') }}
35+
- name: Build
36+
run: |
37+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
38+
cmake --build build --config Release --parallel
39+
cmake --install build --config Release --prefix install
40+
- name: Run tests
41+
run: python3 -u scripts/run_tests.py test_results
42+
- name: Checkout main branch
43+
run: |
44+
git remote set-branches origin '*'
45+
git fetch --depth 1
46+
git checkout master
47+
- name: Build
48+
run: |
49+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
50+
cmake --build build --config Release --parallel
51+
cmake --install build --config Release --prefix install
52+
- name: Run tests
53+
run: python3 -u scripts/run_tests.py test_results_ref
54+
- name: Process tests
55+
run: python3 -u ./build/_deps/optimizationtools-src/scripts/process_tests.py --ref test_results_ref --new test_results

src/algorithms/column_generation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ const ColumnGenerationHeuristicGreedyOutput generalizedassignmentsolver::column_
271271

272272
columngenerationsolver::Model model = get_model(instance);
273273
columngenerationsolver::GreedyParameters cgsg_parameters;
274-
//cgsg_parameters.verbosity_level = 0;
274+
cgsg_parameters.verbosity_level = 0;
275275
cgsg_parameters.timer = parameters.timer;
276276
cgsg_parameters.column_generation_parameters.linear_programming_solver
277277
= columngenerationsolver::s2lps(parameters.linear_programming_solver);

0 commit comments

Comments
 (0)