Add & fix CI (#60)
Jean-Philippe Bossuat jeanphilippe.bossuat@gmail.com
Fri, 08 Aug 2025 19:59:29 +0200
3 files changed,
25 insertions(+),
49 deletions(-)
M
.github/workflows/ci.yml
→
.github/workflows/ci.yml
@@ -2,62 +2,36 @@ name: CI
on: push: + branches: [ main ] pull_request: - -env: - CARGO_TERM_COLOR: always + branches: [ main ] jobs: build-and-test: - name: Build & Test (stable, beta, nightly) runs-on: ubuntu-latest - strategy: - matrix: - toolchain: [stable, beta, nightly] - steps: - - uses: actions/checkout@v4 - - - name: Install toolchain - uses: actions/setup-rust@v1 - with: - toolchain: ${{ matrix.toolchain }} - components: clippy - - - name: Cache cargo registry - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo-registry- - - - name: Cargo fmt check - run: cargo fmt --all -- --check - - - name: Build - run: cargo build --all-targets --verbose - - - name: Run tests - run: cargo test --all-targets --verbose + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive - - name: Run Clippy - run: cargo clippy --all-targets -- -D warnings + - name: Install Rust nightly + uses: dtolnay/rust-toolchain@nightly - docs: - name: Check Documentation - runs-on: ubuntu-latest - needs: build-and-test + - name: Cache cargo dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - steps: - - uses: actions/checkout@v4 + - name: Build + run: cargo build --all-targets - - uses: actions/setup-rust@v1 - with: - toolchain: stable - - - name: Build docs - run: cargo doc --all --no-deps --verbose+ - name: Run tests + run: cargo test --all
M
README.md
→
README.md
@@ -4,6 +4,8 @@ <p align="center">
<img src="poulpy.png" /> </p> +[](https://github.com/phantomzone-org/poulpy/actions/workflows/ci.yml) + **Poulpy** is a fast & modular FHE library that implements Ring-Learning-With-Errors based homomorphic encryption. It adopts the bivariate polynomial representation proposed in [Revisiting Key Decomposition Techniques for FHE: Simpler, Faster and More Generic](https://eprint.iacr.org/2023/771). In addition to simpler and more efficient arithmetic than the residue number system (RNS), this representation provides a common plaintext space for all schemes and allows easy switching between any two schemes. Poulpy also decouples the schemes implementations from the polynomial arithmetic backend by being built around a hardware abstraction layer (HAL). This enables user to easily provide or use a custom backend. ### Bivariate Polynomial Representation
M
backend/builds/cpu_spqlios.rs
→
backend/builds/cpu_spqlios.rs
@@ -1,7 +1,7 @@
use std::path::PathBuf; pub fn build() { - let dst: PathBuf = cmake::Config::new("src/implementation/cpu_spqlios/spqlios-arithmetic").build(); + let dst: PathBuf = cmake::Config::new("src/implementation/cpu_spqlios/spqlios-arithmetic").define("ENABLE_TESTING", "FALSE").build(); let lib_dir: PathBuf = dst.join("lib");