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
43 changes: 43 additions & 0 deletions .github/workflows/cmake-fetch-content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: cmake-fetch-content

on: [push, pull_request]

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

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-content-${{matrix.branch}}

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

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

# todo, not implemented yet in CMakeHighsFetchContent
# - name: Test install
77 changes: 77 additions & 0 deletions .github/workflows/cmake-find-highs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: cmake-find-highs

on: [push, pull_request]

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

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}}

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

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

# cmake -E make_directory ${{runner.workspace}}/install-find-highs-${{matrix.branch}}

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

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

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

# cmake --install .
# -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs-${{matrix.branch}}

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

# does not find highs lib, needs more cmake code in CMakeFindHighsPackage
# - name: Test install
# working-directory: ${{runner.workspace}}/install-find-highs-${{matrix.branch}}
# shell: bash
# run: |
# ./bin/main
76 changes: 0 additions & 76 deletions .github/workflows/extra-unit-cuda-updates.yml

This file was deleted.

Loading