-
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.
not sure all the generics are helping
format use gsoc2023/pt-proxy from arti and get it to compile building - yay
- Loading branch information
Showing
28 changed files
with
750 additions
and
460 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 |
---|---|---|
|
@@ -44,22 +44,22 @@ jobs: | |
- name: Lint | ||
run: cargo clippy --workspace --all-targets --verbose --all-features | ||
|
||
bench: | ||
name: Check that benchmarks compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Build u32 bench | ||
env: | ||
RUSTFLAGS: '--cfg curve25519_dalek_bits="32"' | ||
run: cargo build --benches | ||
- name: Build u64 bench | ||
env: | ||
RUSTFLAGS: '--cfg curve25519_dalek_bits="64"' | ||
run: cargo build --benches | ||
- name: Build default (host native) bench | ||
run: cargo build --benches | ||
# bench: | ||
# name: Check that benchmarks compile | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: dtolnay/rust-toolchain@stable | ||
# - name: Build u32 bench | ||
# env: | ||
# RUSTFLAGS: '--cfg curve25519_dalek_bits="32"' | ||
# run: cargo build --benches | ||
# - name: Build u64 bench | ||
# env: | ||
# RUSTFLAGS: '--cfg curve25519_dalek_bits="64"' | ||
# run: cargo build --benches | ||
# - name: Build default (host native) bench | ||
# run: cargo build --benches | ||
|
||
test-stable: | ||
name: Test 32/64 bit stable | ||
|
@@ -69,7 +69,11 @@ jobs: | |
include: | ||
# 32-bit target | ||
- target: i686-unknown-linux-gnu | ||
deps: sudo apt update && sudo apt install gcc-multilib | ||
deps: > | ||
sudo dpkg --add-architecture i386; | ||
sudo touch /etc/apt/sources.list.d/i386-cross-compile-sources.list; | ||
echo "deb [arch=i386] http://ports.ubuntu.com/ focal universe\ndeb [arch=i386] http://ports.ubuntu.com/ focal-updates universe\n" | sudo tee -a /etc/apt/sources.list.d/i386-cross-compile-sources.list; | ||
sudo apt update && sudo apt install gcc-multilib libsqlite3-dev:i386 | ||
# 64-bit target | ||
- target: x86_64-unknown-linux-gnu | ||
|
@@ -78,15 +82,9 @@ jobs: | |
- uses: dtolnay/rust-toolchain@stable | ||
- run: rustup target add ${{ matrix.target }} | ||
- run: ${{ matrix.deps }} | ||
- run: cargo test --target ${{ matrix.target }} --workspace --all-targets --no-default-features | ||
- run: cargo test --target ${{ matrix.target }} --workspace --all-targets | ||
- run: cargo test --target ${{ matrix.target }} --workspace --all-targets --all-features | ||
# - name: Test | ||
# run: cargo test --verbose --workspace --all-features | ||
# env: | ||
# CARGO_INCREMENTAL: '0' | ||
# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
# - run: cargo test --target ${{ matrix.target }} --workspace --all-targets | ||
# - run: cargo test --target ${{ matrix.target }} --workspace --all-targets --no-default-features | ||
|
||
test-nightly: | ||
name: Test Nightly | ||
|
@@ -114,22 +112,18 @@ jobs: | |
uses: dtolnay/rust-toolchain@nightly | ||
|
||
# Build ptrs library | ||
- name: Build library | ||
- name: Build library and bins | ||
run: cargo build | ||
|
||
# Build ptrs proxy PoC | ||
- name: Build library | ||
run: cargo build --bin proxy --release | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Generate code coverage | ||
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.PTRS_CODECOV_TOKEN }} | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: true | ||
files: codecov.json | ||
token: ${{ secrets.CODECOV_TOKEN }} # required | ||
verbose: true | ||
fail_ci_if_error: true | ||
slug: jmwample/o7 |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ members = [ | |
|
||
resolver = "2" | ||
|
||
|
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.