Skip to content

Commit ecd543d

Browse files
committed
add runner test
1 parent 2be4905 commit ecd543d

File tree

2 files changed

+131
-0
lines changed

2 files changed

+131
-0
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: hipo-ubuntu-cblas
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu_gh:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
# config: [Release, Debug]
12+
config: [Release]
13+
all_tests: [OFF]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Checkout GKlib
19+
uses: actions/checkout@v4
20+
with:
21+
repository: KarypisLab/GKlib
22+
ref: master
23+
path: GKlib
24+
25+
- name: Checkout METIS
26+
uses: actions/checkout@v4
27+
with:
28+
repository: KarypisLab/METIS
29+
ref: master
30+
path: METIS
31+
32+
- name: Create installs dir
33+
working-directory: ${{runner.workspace}}
34+
run: |
35+
mkdir installs
36+
ls
37+
38+
- name: Install GKlib
39+
run: |
40+
cd GKlib
41+
make config shared=1 prefix=${{runner.workspace}}/installs
42+
make
43+
make install
44+
45+
# - name: Check installs
46+
# working-directory: ${{runner.workspace}}
47+
# run: |
48+
# cd installs
49+
# ls
50+
# ls lib
51+
52+
- name: Copy GKlib shared (bug)
53+
working-directory: ${{runner.workspace}}
54+
run: |
55+
cd installs
56+
cd lib
57+
ln libGKlib.so.0 libGKlib.so
58+
ls
59+
60+
- name: Install METIS
61+
run: |
62+
cd METIS
63+
make config shared=1 prefix=${{runner.workspace}}/installs
64+
make
65+
make install
66+
67+
# no default blas available on runner
68+
69+
- name: Cache APT packages
70+
uses: actions/cache@v4
71+
with:
72+
path: |
73+
/var/cache/apt/archives
74+
/var/lib/apt/lists
75+
key: ${{ runner.os }}-apt-libblas
76+
77+
- name: Install OpenBLAS
78+
shell: bash
79+
run: |
80+
sudo apt update
81+
sudo apt install libblas-dev
82+
83+
- name: Create Build Environment
84+
run: cmake -E make_directory ${{runner.workspace}}/build
85+
86+
- name: Configure CMake
87+
working-directory: ${{runner.workspace}}/build
88+
run: |
89+
cmake $GITHUB_WORKSPACE -DHIPO=ON \
90+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
91+
-DALL_TESTS=${{ matrix.all_tests }} \
92+
-DMETIS_ROOT=${{runner.workspace}}/installs \
93+
-DGKLIB_ROOT=${{runner.workspace}}/installs
94+
95+
- name: Build
96+
working-directory: ${{runner.workspace}}/build
97+
run: |
98+
cmake --build . --parallel
99+
100+
- name: Test executable
101+
working-directory: ${{runner.workspace}}/build
102+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
103+
104+
- name: Ctest
105+
working-directory: ${{runner.workspace}}/build
106+
run: |
107+
ctest --parallel --timeout 300 --output-on-failure

HiGHS.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Highs", "nuget\Highs.csproj", "{906CCF22-9F98-849C-F4C4-760DF67E239A}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {BCD6563D-FDFA-437C-8838-D03D517CA26D}
23+
EndGlobalSection
24+
EndGlobal

0 commit comments

Comments
 (0)