Skip to content

Commit 9a62fbe

Browse files
committed
find win exe path and find build macos added
1 parent 6ba202f commit 9a62fbe

2 files changed

Lines changed: 72 additions & 2 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: cmake-find-build-macos
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: [macos-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+
DYLD_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
@@ -65,10 +65,10 @@ jobs:
6565
working-directory: ${{runner.workspace}}\\build-find-highs-${{matrix.branch}}
6666
shell: bash
6767
run: |
68-
./main.exe
68+
.\\Release\\main.exe
6969
7070
- name: Test install
7171
working-directory: ${{runner.workspace}}\\install-find-highs-${{matrix.branch}}
7272
shell: bash
7373
run: |
74-
./bin/Release/main.exe
74+
.\\bin\\Release\\main.exe

0 commit comments

Comments
 (0)