Skip to content

Commit 5634e50

Browse files
committed
Merge branch 'development' into tk/remove_notinstalled
2 parents f8005a1 + 6824a73 commit 5634e50

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Install Dependencies on MacOS
9898
if: ${{ contains(matrix.os, 'macos') }}
9999
run: |
100-
brew install open-mpi libomp yaml-cpp eigen cfitsio ccache
100+
brew install open-mpi libomp yaml-cpp eigen cfitsio ccache onnxruntime
101101
echo "CMAKE_PREFIX_PATH=/opt/homebrew/opt/libomp" >> $GITHUB_ENV
102102
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH
103103
@@ -136,14 +136,14 @@ jobs:
136136
export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
137137
mkdir -p ${{github.workspace}}/sopt/build
138138
cd ${{github.workspace}}/sopt/build
139-
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=OFF -Dexamples=OFF
139+
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=OFF -Dexamples=OFF
140140
make -j$(nproc --ignore 1) install
141141
142142
- name: Pack dependencies
143143
run: |
144144
cd ${{github.workspace}}
145145
tar cfv dependencies.tar local
146-
146+
147147
- uses: actions/upload-artifact@v4
148148
with:
149149
name: dependencies-${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
@@ -206,7 +206,7 @@ jobs:
206206
- name: Install Dependencies on MacOS
207207
if: ${{ contains(matrix.os, 'macos') }}
208208
run: |
209-
brew install open-mpi libomp eigen ccache cfitsio boost yaml-cpp
209+
brew install open-mpi libomp eigen ccache cfitsio boost yaml-cpp onnxruntime
210210
echo "CMAKE_PREFIX_PATH=/opt/homebrew/opt/libomp" >> $GITHUB_ENV
211211
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH
212212
@@ -216,7 +216,7 @@ jobs:
216216
export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
217217
mkdir -p ${{github.workspace}}/build
218218
cd ${{github.workspace}}/build
219-
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Ddocasa=OFF -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=ON
219+
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddocasa=OFF -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=ON
220220
make -j$(nproc --ignore 1) install
221221
222222
- name: Test
@@ -267,7 +267,7 @@ jobs:
267267
- name: Install Dependencies on MacOS
268268
if: ${{ contains(matrix.os, 'macos') }}
269269
run: |
270-
brew install gcc libtiff eigen libyaml ccache cfitsio boost yaml-cpp
270+
brew install gcc libtiff eigen libyaml ccache cfitsio boost yaml-cpp onnxruntime
271271
echo "CMAKE_PREFIX_PATH=/opt/homebrew/opt/libomp" >> $GITHUB_ENV
272272
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH
273273
@@ -276,7 +276,7 @@ jobs:
276276
export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
277277
mkdir -p ${{github.workspace}}/build
278278
cd ${{github.workspace}}/build
279-
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Ddompi=OFF -Dopenmp=OFF -Ddocs=ON
279+
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddompi=OFF -Dopenmp=OFF -Ddocs=ON
280280
make -j$(nproc --ignore 1) install
281281
282282
- name: Deploy to GH pages

cmake_files/dependencies.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ find_package(Boost COMPONENTS system filesystem REQUIRED)
2626

2727
find_package(yaml-cpp REQUIRED)
2828

29-
if (onnxrt)
30-
find_package(onnxruntime REQUIRED)
31-
install(DIRECTORY ${CMAKE_SOURCE_DIR}/models DESTINATION .)
32-
endif()
33-
3429
find_package(sopt REQUIRED)
3530
set(PURIFY_ONNXRT FALSE)
3631
if (onnxrt)
@@ -39,6 +34,7 @@ if (onnxrt)
3934
else()
4035
message(FATAL_ERROR "SOPT built without ONNXrt support")
4136
endif()
37+
install(DIRECTORY ${CMAKE_SOURCE_DIR}/models DESTINATION .)
4238
endif()
4339

4440
find_package(Cubature QUIET)

0 commit comments

Comments
 (0)