forked from zcash/halo2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized short range check on 4 and 5 bits (#21)
Short range checks on 4 and 5 bits are now performed with only one lookup (instead of 2). To do that, we added a column `table_short_range_tag` in the lookup table. This new column `table_short_range_tag` contains the value - 4 for rows used in short range check on 4 bits - 5 for rows used in short range check on 5 bits - 0 for rows used in short range check on 10 bits Disable tests on i686 and code coverage in CI
- Loading branch information
1 parent
093f3a6
commit 28af760
Showing
8 changed files
with
308 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,36 +33,36 @@ jobs: | |
${{ steps.prepare.outputs.feature-flags }} | ||
${{ matrix.extra_flags }} | ||
test-32-bit: | ||
name: Test on i686-unknown-linux-gnu${{ matrix.name_suffix }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stage: [stable, beta, nightly] | ||
include: | ||
- stage: beta | ||
name_suffix: " with beta features" | ||
- stage: nightly | ||
name_suffix: " with nightly features" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: prepare | ||
uses: ./.github/actions/prepare | ||
with: | ||
beta-features: ${{ matrix.stage == 'beta' }} | ||
nightly-features: ${{ matrix.stage == 'nightly' }} | ||
- name: Install cross-platform support dependencies | ||
run: sudo apt install gcc-multilib | ||
- run: rustup target add i686-unknown-linux-gnu | ||
- name: Run tests | ||
run: > | ||
cargo test | ||
--verbose | ||
--release | ||
--workspace | ||
--target i686-unknown-linux-gnu | ||
${{ steps.prepare.outputs.feature-flags }} | ||
# test-32-bit: | ||
# name: Test on i686-unknown-linux-gnu${{ matrix.name_suffix }} | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# stage: [stable, beta, nightly] | ||
# include: | ||
# - stage: beta | ||
# name_suffix: " with beta features" | ||
# - stage: nightly | ||
# name_suffix: " with nightly features" | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - id: prepare | ||
# uses: ./.github/actions/prepare | ||
# with: | ||
# beta-features: ${{ matrix.stage == 'beta' }} | ||
# nightly-features: ${{ matrix.stage == 'nightly' }} | ||
# - name: Install cross-platform support dependencies | ||
# run: sudo apt install gcc-multilib | ||
# - run: rustup target add i686-unknown-linux-gnu | ||
# - name: Run tests | ||
# run: > | ||
# cargo test | ||
# --verbose | ||
# --release | ||
# --workspace | ||
# --target i686-unknown-linux-gnu | ||
# ${{ steps.prepare.outputs.feature-flags }} | ||
|
||
build: | ||
name: Build target ${{ matrix.target }} | ||
|
@@ -125,33 +125,33 @@ jobs: | |
- name: Test halo2 book | ||
run: mdbook test -L target/debug/deps book/ | ||
|
||
codecov: | ||
name: Code coverage | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
# Use stable for this to ensure that cargo-tarpaulin can be built. | ||
- id: prepare | ||
uses: ./.github/actions/prepare | ||
with: | ||
toolchain: stable | ||
nightly-features: true | ||
- name: Install cargo-tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: cargo-tarpaulin | ||
- name: Generate coverage report | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: tarpaulin | ||
args: > | ||
${{ steps.prepare.outputs.feature-flags }} | ||
--timeout 600 | ||
--out Xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
# codecov: | ||
# name: Code coverage | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# # Use stable for this to ensure that cargo-tarpaulin can be built. | ||
# - id: prepare | ||
# uses: ./.github/actions/prepare | ||
# with: | ||
# toolchain: stable | ||
# nightly-features: true | ||
# - name: Install cargo-tarpaulin | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: install | ||
# args: cargo-tarpaulin | ||
# - name: Generate coverage report | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: tarpaulin | ||
# args: > | ||
# ${{ steps.prepare.outputs.feature-flags }} | ||
# --timeout 600 | ||
# --out Xml | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/[email protected] | ||
|
||
doc-links: | ||
name: Intra-doc links | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.