-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.38 KB
/
cmake-fetch-linux.yml
File metadata and controls
48 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: cmake-fetch-linux
on: [push, pull_request]
jobs:
fetch_ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
branch: [master, latest, ortools-unpatch]
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