Skip to content

Commit 3ede10b

Browse files
committed
fetch
1 parent 52b8fb0 commit 3ede10b

File tree

5 files changed

+105
-3
lines changed

5 files changed

+105
-3
lines changed

.github/workflows/cmake-fetch-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cmake-fetch-content
1+
name: cmake-fetch-linux
22

33
on: [push, pull_request]
44

@@ -7,7 +7,6 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
# os: [ubuntu-latest, windows-latest]
1110
os: [ubuntu-latest]
1211
branch: [master, latest, cmake]
1312

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: cmake-fetch-macos
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
master:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [macos-latest]
11+
branch: [master, latest, cmake]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Checkout CMakeHighsFetchContent
17+
uses: actions/checkout@v4
18+
with:
19+
repository: galabovaa/CMakeHighsFetchContent
20+
ref: main
21+
path: CMakeHighsFetchContent-main-${{matrix.branch}}
22+
23+
- name: Create build dir
24+
run: |
25+
cmake -E make_directory ${{runner.workspace}}/build-fetch-${{matrix.branch}}
26+
27+
- name: Build CMakeFindHighsPackage
28+
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
29+
shell: bash
30+
run: |
31+
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent-main-${{matrix.branch}} \
32+
-DBRANCH=${{matrix.branch}} \
33+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-fetch-${{matrix.branch}}
34+
cmake --build . --parallel
35+
cmake --install .
36+
37+
- name: Test
38+
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
39+
shell: bash
40+
run: |
41+
./main
42+
43+
- name: Test install
44+
working-directory: ${{runner.workspace}}/install-fetch-${{matrix.branch}}
45+
shell: bash
46+
run: |
47+
./bin/main
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: cmake-fetch-windows
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
master:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [windows-latest]
11+
branch: [master, latest, cmake]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Checkout CMakeHighsFetchContent
17+
uses: actions/checkout@v4
18+
with:
19+
repository: galabovaa/CMakeHighsFetchContent
20+
ref: main
21+
path: CMakeHighsFetchContent-main-${{matrix.branch}}
22+
23+
- name: Create build dir
24+
run: |
25+
mkdir ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
26+
27+
- name: Configure CMakeFindHighsPackage
28+
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
29+
run: >-
30+
cmake ${{runner.workspace}}\\highs-tests\\CMakeHighsFetchContent-main-${{matrix.branch}}
31+
-DBRANCH=${{matrix.branch}}
32+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-fetch-${{matrix.branch}}
33+
34+
- name: Build CMakeFindHighsPackage
35+
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
36+
run: |
37+
cmake --build . --parallel
38+
cmake --install .
39+
40+
- name: Test
41+
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
42+
shell: bash
43+
run: |
44+
./main
45+
46+
- name: Test install
47+
working-directory: ${{runner.workspace}}\\install-fetch-${{matrix.branch}}
48+
shell: bash
49+
run: |
50+
./bin/main

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
working-directory: ${{runner.workspace}}\\build-find-build-${{matrix.branch}}
6363
run: |
6464
$env:PATH = '${{runner.workspace}}/build-highs-${{matrix.branch}}-b/bin/Release;' + $env:PATH
65+
echo $Env:PATH
6566
.\\Release\\main.exe
6667
6768
- name: Test install
6869
working-directory: ${{runner.workspace}}\\install-find-build-${{matrix.branch}}
69-
shell: bash
7070
run: |
71+
$env:PATH = '${{runner.workspace}}/build-highs-${{matrix.branch}}-b/bin/Release;' + $env:PATH
72+
echo $Env:PATH
7173
.\\bin\\main.exe

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,14 @@ jobs:
6565
working-directory: ${{runner.workspace}}\\build-find-highs-${{matrix.branch}}
6666
shell: bash
6767
run: |
68+
$env:PATH = '${{runner.workspace}}/install-highs-${{matrix.branch}}/bin/Release;' + $env:PATH
69+
echo $Env:PATH
6870
.\\Release\\main.exe
6971
7072
- name: Test install
7173
working-directory: ${{runner.workspace}}\\install-find-highs-${{matrix.branch}}
7274
shell: bash
7375
run: |
76+
$env:PATH = '${{runner.workspace}}/install-highs-${{matrix.branch}}/bin/Release;' + $env:PATH
77+
echo $Env:PATH
7478
.\\bin\\main.exe

0 commit comments

Comments
 (0)