File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,25 +16,37 @@ jobs:
1616 - name : Prepare
1717 run : bash scripts/install_dependency.sh
1818
19+ - name : Install system dependencies
20+ run : |
21+ sudo apt-get update
22+ sudo apt-get install -y pybind11-dev
23+
1924 - name : Install Python dependencies
2025 run : |
2126 pip install --upgrade pip
22- pip install -r requirements.txt
23- pip install pytest
2427 pip install pybind11
25- pip install scikit-build
28+ pip install scikit-build-core
29+ pip install pytest
30+
31+ - name : Build libCacheSim with Python binding
32+ run : |
33+ cmake -B build \
34+ -DCMAKE_BUILD_TYPE=Release \
35+ -DBUILD_PYTHON_BINDING=ON \
36+ -DENABLE_PIC=ON
37+ cmake --build build -j$(nproc)
38+
39+ - name : Copy Python module to package directory
40+ run : |
41+ # Copy the built Python module to the package directory
42+ cp build/libCacheSim-python/_libcachesim*.so libCacheSim-python/libcachesim/
2643
27- - name : Build libCacheSim-python
44+ - name : Install Python package
2845 run : |
29- cmake -B ${{github.workspace}}/build \
30- -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
31- -DCMAKE_C_FLAGS="-fPIC" \
32- -DCMAKE_CXX_FLAGS="-fPIC"
33- cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3446 cd libCacheSim-python
3547 pip install -e . --no-build-isolation
3648
3749 - name : Run tests
3850 run : |
3951 cd libCacheSim-python
40- pytest tests/
52+ pytest tests/ -v
You can’t perform that action at this time.
0 commit comments