Skip to content

Commit 9ce3943

Browse files
committed
extra unit tests for cuda updates
1 parent 073df99 commit 9ce3943

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: extra-unit-cuda-updates
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Checkout HiGHS repo
16+
uses: actions/checkout@v4
17+
with:
18+
repository: ERGO-Code/HiGHS
19+
ref: cuda-updates
20+
path: HiGHS
21+
22+
- name: Checkout highs-unit-tests repo
23+
uses: actions/checkout@v4
24+
with:
25+
repository: galabovaa/highs-unit-tests
26+
ref: cuda-updates
27+
path: highs-unit-tests
28+
29+
- name: HiGHS dir
30+
working-directory: HiGHS
31+
run: |
32+
ls -a
33+
pwd
34+
35+
- name: extra tests dir
36+
working-directory: highs-unit-tests
37+
run: |
38+
ls -a
39+
pwd
40+
41+
- name: workspace dir
42+
working-directory: ${{runner.workspace}}
43+
run: |
44+
ls -a
45+
pwd
46+
47+
- name: Symlink extra tests to HiGHS
48+
working-directory: ${{runner.workspace}}/highs-tests/HiGHS/check
49+
run: |
50+
ls -a
51+
pwd
52+
mv ${{runner.workspace}}/highs-tests/highs-unit-tests ./highs-unit-tests
53+
cd highs-unit-tests
54+
ls -a
55+
pwd
56+
57+
- name: Create Build Environment
58+
run: cmake -E make_directory ${{runner.workspace}}/build
59+
60+
- name: Configure CMake
61+
shell: bash
62+
working-directory: ${{runner.workspace}}/build
63+
run: cmake ${{runner.workspace}}/highs-tests/HiGHS -DALL_TESTS=ON -DBUILD_EXTRA_UNIT_TESTS=ON
64+
65+
- name: Build
66+
working-directory: ${{runner.workspace}}/build
67+
shell: bash
68+
run: |
69+
cmake --build . --parallel
70+
71+
- name: Test
72+
working-directory: ${{runner.workspace}}/build
73+
shell: bash
74+
# Execute tests defined by the CMake configuration.
75+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
76+
run: ctest --parallel --timeout 300 --output-on-failure

0 commit comments

Comments
 (0)