Skip to content

Commit 6d83f7c

Browse files
committed
build
1 parent b45435e commit 6d83f7c

File tree

3 files changed

+94
-189
lines changed

3 files changed

+94
-189
lines changed

.github/workflows/hipo-fetch.yml

Lines changed: 91 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ on: [push, pull_request]
44

55
jobs:
66
ubuntu:
7-
runs-on: [ubuntu-latest, ubuntu-24.04-arm]
7+
runs-on: ${{ matrix.os }}
88

99
strategy:
10+
fail-fast: false
1011
matrix:
12+
os: [ubuntu-latest, ubuntu-24.04-arm]
1113
config: [Release]
1214
all_tests: [ON]
1315

@@ -78,7 +80,49 @@ jobs:
7880
- name: Ctest
7981
working-directory: ${{runner.workspace}}/build
8082
run: |
81-
ctest --parallel --timeout 300 --output-on-failure ubuntu_32:
83+
ctest --parallel --timeout 300 --output-on-failure
84+
85+
ubuntu_32_no_hipo:
86+
runs-on: ubuntu-latest
87+
strategy:
88+
matrix:
89+
config: [Release]
90+
all_tests: [ON]
91+
92+
steps:
93+
- uses: actions/checkout@v4
94+
95+
- name: Create Build Environment
96+
run: cmake -E make_directory ${{runner.workspace}}/build
97+
98+
- name: Install 32-bit deps
99+
run: |
100+
sudo dpkg --add-architecture i386
101+
sudo apt update
102+
sudo apt-get update
103+
sudo apt-get install -y gcc-multilib g++-multilib libc6-dev-i386
104+
105+
- name: Configure CMake
106+
working-directory: ${{runner.workspace}}/build
107+
run: |
108+
cmake $GITHUB_WORKSPACE \
109+
-DCMAKE_C_FLAGS="-m32" \
110+
-DCMAKE_CXX_FLAGS="-m32" \
111+
-DCMAKE_SHARED_LINKER_FLAGS="-m32"
112+
113+
- name: Build
114+
working-directory: ${{runner.workspace}}/build
115+
run: |
116+
cmake --build . --parallel
117+
118+
- name: Test executable
119+
working-directory: ${{runner.workspace}}/build
120+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
121+
122+
- name: Ctest
123+
working-directory: ${{runner.workspace}}/build
124+
run: |
125+
ctest --parallel --timeout 300 --output-on-failure
82126
83127
ubuntu_32_arm:
84128
runs-on: ubuntu-24.04-arm
@@ -103,8 +147,46 @@ jobs:
103147
run: |
104148
export CC=arm-linux-gnueabihf-gcc
105149
export CXX=arm-linux-gnueabihf-g++
106-
cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON \
107-
-DALL_TESTS=${{ matrix.all_tests }}
150+
cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON
151+
152+
- name: Build
153+
working-directory: ${{runner.workspace}}/build
154+
run: |
155+
cmake --build . --parallel
156+
157+
- name: Test executable
158+
working-directory: ${{runner.workspace}}/build
159+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
160+
161+
- name: Ctest
162+
working-directory: ${{runner.workspace}}/build
163+
run: |
164+
ctest --parallel --timeout 300 --output-on-failure
165+
166+
ubuntu_32_arm_no_hipo:
167+
runs-on: ubuntu-24.04-arm
168+
strategy:
169+
matrix:
170+
config: [Release]
171+
all_tests: [ON]
172+
173+
steps:
174+
- uses: actions/checkout@v4
175+
176+
- name: Create Build Environment
177+
run: cmake -E make_directory ${{runner.workspace}}/build
178+
179+
- name: Install 32-bit deps
180+
run: |
181+
sudo apt-get update
182+
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
183+
184+
- name: Configure CMake
185+
working-directory: ${{runner.workspace}}/build
186+
run: |
187+
export CC=arm-linux-gnueabihf-gcc
188+
export CXX=arm-linux-gnueabihf-g++
189+
cmake $GITHUB_WORKSPACE
108190
109191
- name: Build
110192
working-directory: ${{runner.workspace}}/build
@@ -209,6 +291,10 @@ jobs:
209291
# windows static is default so test shared
210292
windows_shared:
211293
runs-on: [windows-latest]
294+
strategy:
295+
matrix:
296+
config: [Release]
297+
config: [Release, Debug]
212298

213299
steps:
214300
- uses: actions/checkout@v4
@@ -227,7 +313,7 @@ jobs:
227313
shell: pwsh
228314
working-directory: ${{runner.workspace}}/build
229315
run: |
230-
cmake --build . --parallel --config Release
316+
cmake --build . --parallel --config ${{ matrix.config }}
231317
232318
- name: Test executable
233319
shell: pwsh

.github/workflows/hipo-macos.yml

Lines changed: 2 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -3,85 +3,7 @@ name: hipo-macos
33
on: [push, pull_request]
44

55
jobs:
6-
macos_gh:
7-
runs-on: macos-latest
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
config: [Release, Debug]
12-
all_tests: [OFF]
13-
14-
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Checkout GKlib
18-
uses: actions/checkout@v4
19-
with:
20-
repository: KarypisLab/GKlib
21-
ref: master
22-
path: GKlib
23-
24-
- name: Checkout METIS
25-
uses: actions/checkout@v4
26-
with:
27-
repository: KarypisLab/METIS
28-
ref: master
29-
path: METIS
30-
31-
- name: Create installs dir
32-
working-directory: ${{runner.workspace}}
33-
run: |
34-
mkdir installs
35-
ls
36-
37-
- name: Install GKlib
38-
run: |
39-
cd GKlib
40-
make config prefix=${{runner.workspace}}/installs
41-
make
42-
make install
43-
44-
- name: Install METIS
45-
run: |
46-
cd METIS
47-
make config prefix=${{runner.workspace}}/installs
48-
make
49-
make install
50-
51-
- name: Check METIS and GKlib
52-
working-directory: ${{runner.workspace}}
53-
run: |
54-
cd installs
55-
ls
56-
ls lib
57-
58-
- name: Create Build Environment
59-
run: cmake -E make_directory ${{runner.workspace}}/build
60-
61-
- name: Configure CMake
62-
working-directory: ${{runner.workspace}}/build
63-
run: |
64-
cmake $GITHUB_WORKSPACE -DHIPO=ON \
65-
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
66-
-DALL_TESTS=${{ matrix.all_tests }} \
67-
-DMETIS_ROOT=${{runner.workspace}}/installs \
68-
-DGKLIB_ROOT=${{runner.workspace}}/installs
69-
70-
- name: Build
71-
working-directory: ${{runner.workspace}}/build
72-
run: |
73-
cmake --build . --parallel
74-
75-
- name: Test executable
76-
working-directory: ${{runner.workspace}}/build
77-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
78-
79-
- name: Ctest
80-
working-directory: ${{runner.workspace}}/build
81-
run: |
82-
ctest --parallel --timeout 300 --output-on-failure
83-
84-
macos_510-ts:
6+
macos:
857
runs-on: macos-latest
868
strategy:
879
fail-fast: false
@@ -92,37 +14,6 @@ jobs:
9214
steps:
9315
- uses: actions/checkout@v4
9416

95-
- name: Checkout METIS
96-
uses: actions/checkout@v4
97-
with:
98-
repository: galabovaa/METIS
99-
ref: 510-ts
100-
path: METIS
101-
102-
- name: Create installs dir
103-
working-directory: ${{runner.workspace}}
104-
run: |
105-
mkdir installs
106-
ls
107-
108-
- name: Install METIS
109-
run: |
110-
cmake \
111-
-S $GITHUB_WORKSPACE/METIS \
112-
-B build \
113-
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
114-
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/installs \
115-
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
116-
cmake --build build --parallel
117-
cmake --install build
118-
119-
- name: Check METIS and GKlib
120-
working-directory: ${{runner.workspace}}
121-
run: |
122-
cd installs
123-
ls
124-
ls lib
125-
12617
- name: Create Build Environment
12718
run: cmake -E make_directory ${{runner.workspace}}/build
12819

@@ -131,79 +22,7 @@ jobs:
13122
run: |
13223
cmake $GITHUB_WORKSPACE -DHIPO=ON \
13324
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
134-
-DALL_TESTS=${{ matrix.all_tests }} \
135-
-DMETIS_ROOT=${{runner.workspace}}/installs \
136-
137-
# -DGKLIB_ROOT=${{runner.workspace}}/installs
138-
139-
- name: Build
140-
working-directory: ${{runner.workspace}}/build
141-
run: |
142-
cmake --build . --parallel
143-
144-
- name: Test executable
145-
working-directory: ${{runner.workspace}}/build
146-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
147-
148-
- name: Ctest
149-
working-directory: ${{runner.workspace}}/build
150-
run: |
151-
ctest --parallel --timeout 300 --output-on-failure
152-
153-
macos_521-ts:
154-
runs-on: macos-latest
155-
strategy:
156-
fail-fast: false
157-
matrix:
158-
config: [Release, Debug]
159-
all_tests: [ON, OFF]
160-
161-
steps:
162-
- uses: actions/checkout@v4
163-
164-
- name: Checkout METIS
165-
uses: actions/checkout@v4
166-
with:
167-
repository: galabovaa/METIS
168-
ref: 521-ts
169-
path: METIS
170-
171-
- name: Create installs dir
172-
working-directory: ${{runner.workspace}}
173-
run: |
174-
mkdir installs
175-
ls
176-
177-
- name: Install METIS
178-
run: |
179-
cmake \
180-
-S $GITHUB_WORKSPACE/METIS \
181-
-B build \
182-
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
183-
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/installs \
184-
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
185-
cmake --build build --parallel
186-
cmake --install build
187-
188-
- name: Check METIS and GKlib
189-
working-directory: ${{runner.workspace}}
190-
run: |
191-
cd installs
192-
ls
193-
ls lib
194-
195-
- name: Create Build Environment
196-
run: cmake -E make_directory ${{runner.workspace}}/build
197-
198-
- name: Configure CMake
199-
working-directory: ${{runner.workspace}}/build
200-
run: |
201-
cmake $GITHUB_WORKSPACE -DHIPO=ON \
202-
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
203-
-DALL_TESTS=${{ matrix.all_tests }} \
204-
-DMETIS_ROOT=${{runner.workspace}}/installs \
205-
206-
# -DGKLIB_ROOT=${{runner.workspace}}/installs
25+
-DALL_TESTS=${{ matrix.all_tests }}
20726
20827
- name: Build
20928
working-directory: ${{runner.workspace}}/build

.github/workflows/hipo-ubuntu-cblas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
/var/lib/apt/lists
7575
key: ${{ runner.os }}-apt-libblas
7676

77-
- name: Install OpenBLAS
77+
- name: Install BLAS
7878
shell: bash
7979
run: |
8080
sudo apt update

0 commit comments

Comments
 (0)