Skip to content

Commit 722e23f

Browse files
authored
Update build (#66)
1 parent ae66676 commit 722e23f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313

1414
matrix:
15-
os: [ubuntu-latest, macos-14, ubuntu-24.04-arm, macos-15-intel]
15+
os: [ubuntu-latest, macos-15, ubuntu-24.04-arm, macos-15-intel]
1616
build_type: [Release]
1717
staticcompile: [ON, OFF]
1818

@@ -114,6 +114,18 @@ jobs:
114114
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} ..
115115
cd ../..
116116
117+
- name: Copy cadiback and cadical libs
118+
if: matrix.staticcompile == 'OFF'
119+
run: |
120+
sudo cp cadiback/libcadiback.so .
121+
sudo cp cadical/build/libcadical.so .
122+
123+
- name: Copy cadiback and cadical libs
124+
if: matrix.staticcompile == 'OFF' && contains(matrix.os, 'ubuntu')
125+
run: |
126+
sudo cp cadiback/libcadiback.so /usr/lib/
127+
sudo cp cadical/build/libcadical.so /usr/lib/
128+
117129
- name: Checkout CMS
118130
uses: actions/checkout@v4
119131
with:
@@ -246,6 +258,16 @@ jobs:
246258
- name: Test
247259
run: ctest -C ${{matrix.build_type}} --verbose
248260

261+
- name: run it to check it executes
262+
run: |
263+
echo "Running version command"
264+
./project/build/approxmc --version
265+
echo $?
266+
echo "Running help command"
267+
./project/build/approxmc --help
268+
echo $?
269+
270+
249271
- name: Upload Artifact - Linux
250272
if: matrix.os == 'ubuntu-latest' && matrix.staticcompile == 'ON'
251273
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)