Skip to content

Commit

Permalink
Add pip install step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Deniskore committed Feb 4, 2025
1 parent 6c79ecf commit 1bd7fab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/spz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
sudo apt-get install -y build-essential cmake ninja-build python3-pip
- name: Set up C++ environment on macOS
if: runner.os == 'macOS'
run: |
brew update
brew install cmake ninja
brew install cmake ninja python3
- name: Set up C++ environment on Windows
if: runner.os == 'Windows'
run: |
choco install python --version 3.10
python -m pip install --upgrade pip
shell: cmd

- name: Configure CMake with MSBuild (Windows)
if: runner.os == 'Windows'
Expand All @@ -57,3 +64,7 @@ jobs:
- name: Build with Ninja (Linux/macOS)
if: runner.os != 'Windows'
run: cmake --build build --parallel

- name: Install Python spz package
run: |
pip3 install .
2 changes: 1 addition & 1 deletion src/cc/load-spz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ bool saveSpz(const GaussianCloud &g, std::vector<uint8_t> *out,
data = ss.str();
}
return compressZstd(reinterpret_cast<const uint8_t *>(data.data()),
data.size(), out, compressionLevel);
data.size(), out, compressionLevel, workers);
}

PackedGaussians loadSpzPacked(const uint8_t *data, int size) {
Expand Down

0 comments on commit 1bd7fab

Please sign in to comment.