diff --git a/.github/workflows/cargo_build.yml b/.github/workflows/cargo_build.yml new file mode 100644 index 0000000..cad54aa --- /dev/null +++ b/.github/workflows/cargo_build.yml @@ -0,0 +1,37 @@ +name: Cargo Build + +on: + pull_request: + +env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: "full" + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + cargo-builds: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + + - name: Install and run newline linter checks + if: matrix.os == 'ubuntu-latest' + run: | + wget https://github.com/fernandrone/linelint/releases/download/0.0.6/linelint-linux-amd64 + echo "16b70fb7b471d6f95cbdc0b4e5dc2b0ac9e84ba9ecdc488f7bdf13df823aca4b linelint-linux-amd64" > checksum + sha256sum -c checksum || exit 1 + chmod +x linelint-linux-amd64 + mv linelint-linux-amd64 /usr/local/bin/linelint + linelint . + + - name: Check fmt + run: | + cargo fmt --check + + - name: Run clippy + run: | + cargo clippy --all-features diff --git a/Cargo.lock b/Cargo.lock index 460df44..ce4a286 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,7 +104,8 @@ dependencies = [ [[package]] name = "concrete-csprng" version = "0.4.0" -source = "git+https://github.com/zama-ai/tfhe-rs.git?branch=ns/0.6/hl_intid_notversioned#889cea24b663c622bb83477488798dccbf1a37a8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c7080e711c39c3dda834604f7c31f4634a38b8dddeb9f24db5d7801751415ad" dependencies = [ "aes", "libc", @@ -428,8 +429,9 @@ dependencies = [ [[package]] name = "tfhe" -version = "0.6.1" -source = "git+https://github.com/zama-ai/tfhe-rs.git?branch=ns/0.6/hl_intid_notversioned#889cea24b663c622bb83477488798dccbf1a37a8" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef19c00c4aceea2d103524911ee840fdcdd1376b1946c5b103b5c094a039f160" dependencies = [ "aligned-vec", "bincode", @@ -463,7 +465,8 @@ dependencies = [ [[package]] name = "tfhe-versionable" version = "0.1.0" -source = "git+https://github.com/zama-ai/tfhe-rs.git?branch=ns/0.6/hl_intid_notversioned#889cea24b663c622bb83477488798dccbf1a37a8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7977829d8b2d59a16d9780ffbf8e4084a8d67f32c0e557b647136d094d391b2" dependencies = [ "aligned-vec", "num-complex", @@ -474,7 +477,8 @@ dependencies = [ [[package]] name = "tfhe-versionable-derive" version = "0.1.0" -source = "git+https://github.com/zama-ai/tfhe-rs.git?branch=ns/0.6/hl_intid_notversioned#889cea24b663c622bb83477488798dccbf1a37a8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "754aede9c522d81d852b46714d42137d307f418b8b6eed4db03d1466080f4f9d" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 9f95bdd..351c6dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,3 @@ default = ["generate"] generate = ["dep:tfhe_0_6", "dep:tfhe-versionable"] load = ["dep:semver"] - -[patch.crates-io] -tfhe_0_6 = { git = "https://github.com/zama-ai/tfhe-rs.git", branch = "ns/0.6/hl_intid_notversioned", package = "tfhe" } -tfhe-versionable = { git = "https://github.com/zama-ai/tfhe-rs.git", branch = "ns/0.6/hl_intid_notversioned" }