File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed
Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 1313 PETSIRD_PREFIX : ${{ github.workspace }}/petsird-install
1414
1515 steps :
16+ - name : Install System Dependencies (date-tz)
17+ run : |
18+ sudo apt-get update
19+ sudo apt-get install -y software-properties-common
20+ sudo add-apt-repository -y universe
21+ sudo apt-get update
22+ sudo apt-get install -y libdate-tz-dev || sudo apt-get install -y libhowardhinnant-date-dev
23+ # sudo apt-get install -y libopenblas-dev
24+
1625 - name : Checkout STIR
1726 uses : actions/checkout@v4
1827
@@ -62,16 +71,35 @@ jobs:
6271 - name : Install PETSIRD Python dependencies
6372 run : |
6473 micromamba install -y -n yardl -f PETSIRD/environment.yml
65- micromamba install -y -n yardl -c conda-forge libdate
74+ micromamba install -n yardl -c conda-forge xtensor xtensor-blas openblas
75+ # micromamba install -y -n yardl -c conda-forge libdate tzdata libcurl
6676
6777 - name : Generate PETSIRD sources (yardl)
6878 run : |
6979 micromamba run -n yardl bash -lc "
7080 export CC=/usr/bin/gcc
7181 export CXX=/usr/bin/g++
82+
83+ # Make conda packages visible to CMake
84+ export CMAKE_PREFIX_PATH=\$CONDA_PREFIX:\$CMAKE_PREFIX_PATH
85+ export CXXFLAGS=\"-I\$MAMBA_ROOT_PREFIX/envs/yardl/include \$CXXFLAGS\"
86+
7287 cd PETSIRD/model
7388 just build
74- ls ../cpp/generated
89+ "
90+ - name : Build PETSIRD C++
91+ run : |
92+ micromamba run -n yardl bash -lc "
93+ cd PETSIRD/cpp
94+ mkdir -p build
95+ cd build
96+
97+ cmake .. \
98+ -DCMAKE_BUILD_TYPE=Release \
99+ -DCMAKE_PREFIX_PATH=\"\$CONDA_PREFIX\" \
100+ -DCMAKE_INSTALL_PREFIX=\"${{ env.PETSIRD_PREFIX }}\"
101+
102+ cmake --build . --target install -- -j$(nproc)
75103 "
76104
77105
You can’t perform that action at this time.
0 commit comments