Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: cmake-fetch-content
name: cmake-fetch-linux

on: [push, pull_request]

jobs:
master:
fetch_ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
branch: [master, latest, cmake]

Expand All @@ -23,23 +23,26 @@ jobs:

- name: Create build dir
run: |
cmake -E make_directory ${{runner.workspace}}/build-fetch-content-${{matrix.branch}}
cmake -E make_directory ${{runner.workspace}}/build-fetch-${{matrix.branch}}

- name: Build CMakeFindHighsPackage
working-directory: ${{runner.workspace}}/build-fetch-content-${{matrix.branch}}
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
shell: bash
run: |
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent-main-${{matrix.branch}} \
-DBRANCH=${{matrix.branch}}
-DBRANCH=${{matrix.branch}} \
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-fetch-${{matrix.branch}}
cmake --build . --parallel
cmake --install .

- name: Test
working-directory: ${{runner.workspace}}/build-fetch-content-${{matrix.branch}}
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
shell: bash
run: |
./main

# todo, not implemented yet in CMakeHighsFetchContent
# - name: Test install

# trigger test
- name: Test install
working-directory: ${{runner.workspace}}/install-fetch-${{matrix.branch}}
shell: bash
run: |
./bin/main
48 changes: 48 additions & 0 deletions .github/workflows/cmake-fetch-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: cmake-fetch-macos

on: [push, pull_request]

jobs:
fetch_macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
branch: [master, latest, cmake]

steps:
- uses: actions/checkout@v4

- name: Checkout CMakeHighsFetchContent
uses: actions/checkout@v4
with:
repository: galabovaa/CMakeHighsFetchContent
ref: main
path: CMakeHighsFetchContent-main-${{matrix.branch}}

- name: Create build dir
run: |
cmake -E make_directory ${{runner.workspace}}/build-fetch-${{matrix.branch}}

- name: Build CMakeFindHighsPackage
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
shell: bash
run: |
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent-main-${{matrix.branch}} \
-DBRANCH=${{matrix.branch}} \
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-fetch-${{matrix.branch}}
cmake --build . --parallel
cmake --install .

- name: Test
working-directory: ${{runner.workspace}}/build-fetch-${{matrix.branch}}
shell: bash
run: |
./main

- name: Test install
working-directory: ${{runner.workspace}}/install-fetch-${{matrix.branch}}
shell: bash
run: |
./bin/main
50 changes: 50 additions & 0 deletions .github/workflows/cmake-fetch-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: cmake-fetch-windows

on: [push, pull_request]

jobs:
fetch_win:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
branch: [master, latest, cmake]

steps:
- uses: actions/checkout@v4

- name: Checkout CMakeHighsFetchContent
uses: actions/checkout@v4
with:
repository: galabovaa/CMakeHighsFetchContent
ref: main
path: CMakeHighsFetchContent-main-${{matrix.branch}}

- name: Create build dir
run: |
mkdir ${{runner.workspace}}\\build-fetch-${{matrix.branch}}

- name: Configure CMakeFindHighsPackage
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
run: >-
cmake ${{runner.workspace}}\\highs-tests\\CMakeHighsFetchContent-main-${{matrix.branch}}
-DBRANCH=${{matrix.branch}}
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-fetch-${{matrix.branch}}

- name: Build CMakeFindHighsPackage
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
run: |
cmake --build . --parallel --config Release
cmake --install .

- name: Test
working-directory: ${{runner.workspace}}\\build-fetch-${{matrix.branch}}
run: |
.\\Release\\main.exe

- name: Test install
working-directory: ${{runner.workspace}}\\install-fetch-${{matrix.branch}}
shell: bash
run: |
.\\bin\\main.exe
70 changes: 70 additions & 0 deletions .github/workflows/cmake-find-build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: cmake-find-build-linux

on: [push, pull_request]

jobs:
find_b_ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
branch: [master, latest, cmake]

steps:
- uses: actions/checkout@v4

- name: Checkout HiGHS repo
uses: actions/checkout@v4
with:
repository: ERGO-Code/HiGHS
ref: ${{matrix.branch}}
path: HiGHS-${{matrix.branch}}-b

- name: Checkout CMakeHighsFindPackage
uses: actions/checkout@v4
with:
repository: galabovaa/CMakeHighsFindPackage
ref: master
path: CMakeHighsFindPackage-master-${{matrix.branch}}-b

- name: Create build and install dirs
run: |
cmake -E make_directory ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
cmake -E make_directory ${{runner.workspace}}/build-find-build-${{matrix.branch}}
cmake -E make_directory ${{runner.workspace}}/install-find-build-${{matrix.branch}}

- name: Configure CMake HiGHS
shell: bash
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
run:
cmake ${{runner.workspace}}/highs-tests/HiGHS-${{matrix.branch}}-b

- name: Build, ctest and install HiGHS
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
shell: bash
run: |
cmake --build . --parallel
ctest

- name: Build CMakeFindHighsPackage
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
shell: bash
run: |
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage-master-${{matrix.branch}}-b \
-DHIGHS_DIR=${{runner.workspace}}/build-highs-${{matrix.branch}}-b \
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-build-${{matrix.branch}}
cmake --build . --parallel
cmake --install .

- name: Test build
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
shell: bash
run: |
./main

- name: Test install
working-directory: ${{runner.workspace}}/install-find-build-${{matrix.branch}}
shell: bash
run: |
LD_LIBRARY_PATH=${{runner.workspace}}/build-highs-${{matrix.branch}}-b/lib ./bin/main
70 changes: 70 additions & 0 deletions .github/workflows/cmake-find-build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: cmake-find-build-macos

on: [push, pull_request]

jobs:
find_b_macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
branch: [master, latest, cmake]

steps:
- uses: actions/checkout@v4

- name: Checkout HiGHS repo
uses: actions/checkout@v4
with:
repository: ERGO-Code/HiGHS
ref: ${{matrix.branch}}
path: HiGHS-${{matrix.branch}}-b

- name: Checkout CMakeHighsFindPackage
uses: actions/checkout@v4
with:
repository: galabovaa/CMakeHighsFindPackage
ref: master
path: CMakeHighsFindPackage-master-${{matrix.branch}}-b

- name: Create build and install dirs
run: |
cmake -E make_directory ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
cmake -E make_directory ${{runner.workspace}}/build-find-build-${{matrix.branch}}
cmake -E make_directory ${{runner.workspace}}/install-find-build-${{matrix.branch}}

- name: Configure CMake HiGHS
shell: bash
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
run:
cmake ${{runner.workspace}}/highs-tests/HiGHS-${{matrix.branch}}-b

- name: Build, ctest and install HiGHS
working-directory: ${{runner.workspace}}/build-highs-${{matrix.branch}}-b
shell: bash
run: |
cmake --build . --parallel
ctest

- name: Build CMakeFindHighsPackage
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
shell: bash
run: |
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage-master-${{matrix.branch}}-b \
-DHIGHS_DIR=${{runner.workspace}}/build-highs-${{matrix.branch}}-b \
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-build-${{matrix.branch}}
cmake --build . --parallel
cmake --install .

- name: Test build
working-directory: ${{runner.workspace}}/build-find-build-${{matrix.branch}}
shell: bash
run: |
./main

- name: Test install
working-directory: ${{runner.workspace}}/install-find-build-${{matrix.branch}}
shell: bash
run: |
DYLD_LIBRARY_PATH=${{runner.workspace}}/build-highs-${{matrix.branch}}-b/lib ./bin/main
73 changes: 73 additions & 0 deletions .github/workflows/cmake-find-build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: cmake-find-build-windows

on: [push, pull_request]

jobs:
find_b_win:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
branch: [master, latest, cmake]

steps:
- uses: actions/checkout@v4

- name: Checkout HiGHS repo
uses: actions/checkout@v4
with:
repository: ERGO-Code/HiGHS
ref: ${{matrix.branch}}
path: HiGHS-${{matrix.branch}}-b

- name: Checkout CMakeHighsFindPackage
uses: actions/checkout@v4
with:
repository: galabovaa/CMakeHighsFindPackage
ref: master
path: CMakeHighsFindPackage-master-${{matrix.branch}}-b

- name: Create build and install dirs
run: |
mkdir ${{runner.workspace}}\\build-highs-${{matrix.branch}}-b
mkdir ${{runner.workspace}}\\build-find-build-${{matrix.branch}}
mkdir ${{runner.workspace}}\\install-find-build-${{matrix.branch}}

- name: Configure CMake HiGHS
working-directory: ${{runner.workspace}}\\build-highs-${{matrix.branch}}-b
run:
cmake ${{runner.workspace}}\\highs-tests\\HiGHS-${{matrix.branch}}-b

- name: Build, ctest and install HiGHS
working-directory: ${{runner.workspace}}\\build-highs-${{matrix.branch}}-b
run: |
cmake --build . --parallel --config Release
ctest -C Release

- name: Configure CMakeFindHighsPackage
working-directory: ${{runner.workspace}}\\build-find-build-${{matrix.branch}}
run: >-
cmake ${{runner.workspace}}\\highs-tests\\CMakeHighsFindPackage-master-${{matrix.branch}}-b
-DHIGHS_DIR=${{runner.workspace}}\\build-highs-${{matrix.branch}}-b
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}\\install-find-build-${{matrix.branch}}

- name: Build and install CMakeFindHighsPackage
working-directory: ${{runner.workspace}}\\build-find-build-${{matrix.branch}}
run: |
cmake --build . --parallel --config Release
cmake --install .

- name: Test build
working-directory: ${{runner.workspace}}\\build-find-build-${{matrix.branch}}
run: |
$env:PATH = '${{runner.workspace}}/build-highs-${{matrix.branch}}-b/bin/Release;' + $env:PATH
echo $Env:PATH
.\\Release\\main.exe

- name: Test install
working-directory: ${{runner.workspace}}\\install-find-build-${{matrix.branch}}
run: |
$env:PATH = '${{runner.workspace}}/build-highs-${{matrix.branch}}-b/bin/Release;' + $env:PATH
echo $Env:PATH
.\\bin\\main.exe
Loading
Loading