@@ -2,49 +2,117 @@ name: build-unit-tests-external
22
33on : [push, pull_request]
44
5- jobs :
6- release_extra_unit_tests :
7- runs-on : windows-2019
5+ jobs :
6+ release_extra_only :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [ubuntu-latest]
811
912 steps :
1013 - uses : actions/checkout@v4
1114
12- - name : Create Build Environment
13- run : cmake -E make_directory ${{runner.workspace}}/build
14-
1515 - name : Clone extra unit tests repo
16- working-directory : ${{runner.workspace}}/build
17- run : git clone https://github.com/galabovaa/highs-unit-tests.git
16+ shell : bash
17+ working-directory : ${{runner.workspace}}
18+ run : |
19+ git clone https://github.com/galabovaa/highs-unit-tests.git
1820
1921 - name : Create symlink
2022 shell : bash
21- working-directory : $GITHUB_WORKSPACE/check
22- run : mklink /d highs-unit-tests ${{runner.workspace}}/highs-unit-tests
23+ working-directory : ${{runner.workspace}}
24+ working-directory :
25+ run : ln -s ${{runner.workspace}}/highs-unit-tests $GITHUB_WORKSPACE/check
26+
27+ - name : Create Build Environment
28+ run : cmake -E make_directory ${{runner.workspace}}/build
2329
24- - name : Configure CMake
25- # Use a bash shell so we can use the same syntax for environment variable
26- # access regardless of the host operating system
30+ - name : Configure CMake All
2731 shell : bash
2832 working-directory : ${{runner.workspace}}/build
29- # Note the current convention is to use the -S and -B options here to specify source
30- # and build directories, but this is only available with CMake 3.13 and higher.
31- # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
32- run : cmake $GITHUB_WORKSPACE -DALL_TESTS=ON -DBUILD_EXTRA_UNIT_TESTS=ON
33+ run : cmake $GITHUB_WORKSPACE -DBUILD_EXTRA_UNIT_TESTS=ON -DBUILD_EXTRA_UNIT_ONLY=ON -DBUILD_CXX=OFF
3334
34- - name : Build
35+ - name : Build All
3536 working-directory : ${{runner.workspace}}/build
3637 shell : bash
37- # Execute the build. You can specify a specific target with "--target <NAME>"
38- run : cmake --build . --config Release --parallel
38+ run : |
39+ cmake --build . --parallel
3940
40- - name : Unit Test Extra
41+ - name : Test Extra Only
4142 working-directory : ${{runner.workspace}}/build
4243 shell : bash
43- run : ./bin/Release/unit_tests.exe highs-names-extra
44+ run : ctest --parallel --timeout 300 --output-on-failure
4445
45- - name : Test
46- working-directory : ${{runner.workspace}}/build
47- shell : bash
48- # Execute tests defined by the CMake configuration.
49- # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
50- run : ctest --timeout 300 --output-on-failure -C Release
46+ # release_all_tests:
47+ # runs-on: ${{ matrix.os }}
48+ # strategy:
49+ # matrix:
50+ # os: [ubuntu-latest]
51+
52+ # steps:
53+ # - uses: actions/checkout@v4
54+
55+ # - name: Create Build Environment
56+ # run: cmake -E make_directory ${{runner.workspace}}/build
57+
58+ # - name: Configure CMake All
59+ # shell: bash
60+ # working-directory: ${{runner.workspace}}/build
61+ # run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON -DBUILD_EXTRA_UNIT_TESTS=ON
62+
63+ # - name: Build All
64+ # working-directory: ${{runner.workspace}}/build
65+ # shell: bash
66+ # run: |
67+ # cmake --build . --parallel
68+
69+ # - name: Test All
70+ # working-directory: ${{runner.workspace}}/build
71+ # shell: bash
72+ # run: ctest --parallel --timeout 300 --output-on-failure
73+
74+ # release__windows_extra_unit_tests:
75+ # runs-on: windows-2019
76+
77+ # steps:
78+ # - uses: actions/checkout@v4
79+
80+ # - name: Create Build Environment
81+ # run: cmake -E make_directory ${{runner.workspace}}/build
82+
83+ # - name: Clone extra unit tests repo
84+ # working-directory: ${{runner.workspace}}/build
85+ # run: git clone https://github.com/galabovaa/highs-unit-tests.git
86+
87+ # - name: Create symlink
88+ # shell: bash
89+ # working-directory: $GITHUB_WORKSPACE/check
90+ # run: mklink /d highs-unit-tests ${{runner.workspace}}/highs-unit-tests
91+
92+ # - name: Configure CMake
93+ # # Use a bash shell so we can use the same syntax for environment variable
94+ # # access regardless of the host operating system
95+ # shell: bash
96+ # working-directory: ${{runner.workspace}}/build
97+ # # Note the current convention is to use the -S and -B options here to specify source
98+ # # and build directories, but this is only available with CMake 3.13 and higher.
99+ # # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
100+ # run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON -DBUILD_EXTRA_UNIT_TESTS=ON
101+
102+ # - name: Build
103+ # working-directory: ${{runner.workspace}}/build
104+ # shell: bash
105+ # # Execute the build. You can specify a specific target with "--target <NAME>"
106+ # run: cmake --build . --config Release --parallel
107+
108+ # - name: Unit Test Extra
109+ # working-directory: ${{runner.workspace}}/build
110+ # shell: bash
111+ # run: ./bin/Release/unit_tests.exe highs-names-extra
112+
113+ # - name: Test
114+ # working-directory: ${{runner.workspace}}/build
115+ # shell: bash
116+ # # Execute tests defined by the CMake configuration.
117+ # # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
118+ # run: ctest --timeout 300 --output-on-failure -C Release
0 commit comments