Skip to content

Commit 778ccb7

Browse files
committed
wip
1 parent 58d425a commit 778ccb7

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: cmake-find-build-linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest]
12+
branch: [master, latest, cmake]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Checkout HiGHS repo
18+
uses: actions/checkout@v4
19+
with:
20+
repository: ERGO-Code/HiGHS
21+
ref: ${{matrix.branch}}
22+
path: HiGHS-${{matrix.branch}}-b
23+
24+
- name: Checkout CMakeHighsFindPackage
25+
uses: actions/checkout@v4
26+
with:
27+
repository: galabovaa/CMakeHighsFindPackage
28+
ref: master
29+
path: CMakeHighsFindPackage-master-${{matrix.branch}}-b
30+
31+
- name: Create build and install dirs
32+
run: |
33+
cmake -E make_directory ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
34+
cmake -E make_directory ${{runner.workspace}}/build-find-build-${{matrix.branch}}
35+
cmake -E make_directory ${{runner.workspace}}/install-find-build-${{matrix.branch}}
36+
37+
- name: Configure CMake HiGHS
38+
shell: bash
39+
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
40+
run:
41+
cmake ${{runner.workspace}}/highs-tests/HiGHS-${{matrix.branch}}-b
42+
43+
- name: Build, ctest and install HiGHS
44+
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
45+
shell: bash
46+
run: |
47+
cmake --build . --parallel
48+
ctest
49+
50+
- name: Build CMakeFindHighsPackage
51+
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
52+
shell: bash
53+
run: |
54+
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage-master-${{matrix.branch}}-b \
55+
-DHIGHS_DIR=${{runner.workspace}}/build-highs-${{matrix.branch}}-b \
56+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-build-${{matrix.branch}}
57+
cmake --build . --parallel
58+
cmake --install .
59+
60+
- name: Test build
61+
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
62+
shell: bash
63+
run: |
64+
./main
65+
66+
- name: Test install
67+
working-directory: ${{runner.workspace}}/install-find-build-${{matrix.branch}}
68+
shell: bash
69+
run: |
70+
LD_LIBRARY_PATH=${{runner.workspace}}/build-highs-${{matrix.branch}}-b/lib ./bin/main

.github/workflows/cmake-find-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
3838
- name: Configure CMake HiGHS
3939
working-directory: ${{runner.workspace}}\\build-highs-${{matrix.branch}}
40-
run: >
40+
run: >-
4141
cmake ${{runner.workspace}}\\highs-tests\\HiGHS-${{matrix.branch}}
42-
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}\\install-highs-${{matrix.branch}}
42+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}\\install-highs-${{matrix.branch}}
4343
4444
- name: Build, ctest and install HiGHS
4545
working-directory: ${{runner.workspace}}\\build-highs-${{matrix.branch}}

0 commit comments

Comments
 (0)