Skip to content

Commit

Permalink
enable CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtny1 committed Sep 28, 2023
1 parent 42c4faf commit 292f5f5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: ${{ matrix.deps }}
- uses: dtolnay/rust-toolchain@master
- uses: risc0/risc0/.github/actions/rustup
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/curve25519-dalek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
- run: rustup target add ${{ matrix.target }}
- run: ${{ matrix.deps }}
- env:
Expand All @@ -53,7 +53,7 @@ jobs:
- crate: curve25519-dalek
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- uses: risc0/risc0/.github/actions/rustup
with:
toolchain: stable
targets: thumbv7em-none-eabi
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
- run: rustup target add ${{ matrix.target }}
- run: ${{ matrix.deps }}
- env:
Expand All @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- uses: risc0/risc0/.github/actions/rustup
with:
toolchain: stable
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu,i686-unknown-linux-gnu
Expand All @@ -105,22 +105,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
- env:
# This will:
# 1) build all of the x86_64 SIMD code,
# 2) run all of the SIMD-specific tests that the test runner supports,
# 3) run all of the normal tests using the best available SIMD backend.
# This should automatically pick up the simd backend in a x84_64 runner
RUSTFLAGS: '-C target_cpu=native'
INPUT_TOOLCHAIN: 'nightly'
run: cargo test --target x86_64-unknown-linux-gnu

test-simd-stable:
name: Test simd backend (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
- env:
# This will run AVX2-specific tests and run all of the normal tests
# with the AVX2 backend, even if the runner supports AVX512.
Expand All @@ -136,7 +137,9 @@ jobs:
- uses: actions/checkout@v3
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
# Cargo.lock with the oldest possible deps
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
- env:
INPUT_TOOLCHAIN: 'nightly'
- run: cargo -Z minimal-versions check --no-default-features --features serde
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ed25519-dalek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- uses: actions/checkout@v3
# Now run `cargo +nightly -Z minimal-verisons check` in order to get a
# Cargo.lock with the oldest possible deps
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
- env:
INPUT_TOOLCHAIN: 'nightly'
- run: cargo -Z minimal-versions check --no-default-features --features serde
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
- env:
INPUT_TOOLCHAIN: 'nightly'
- run: cargo test

bench:
name: Check that benchmarks compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
- name: Build u32 bench
env:
RUSTFLAGS: '--cfg curve25519_dalek_bits="32"'
Expand All @@ -69,7 +71,7 @@ jobs:
- crate: x25519-dalek
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- uses: risc0/risc0/.github/actions/rustup
with:
toolchain: stable
targets: thumbv7em-none-eabi
Expand All @@ -85,17 +87,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
with:
components: clippy
- env:
INPUT_TOOLCHAIN: 'nightly'
- run: cargo clippy --target x86_64-unknown-linux-gnu --all-features

rustfmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
with:
components: rustfmt
- run: cargo fmt --all -- --check
Expand All @@ -105,7 +109,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: risc0/risc0/.github/actions/rustup
with:
toolchain: stable
- run: cargo doc --all-features
4 changes: 3 additions & 1 deletion .github/workflows/x25519-dalek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- uses: actions/checkout@v3
# Now run `cargo +nightly -Z minimal-verisons check` in order to get a
# Cargo.lock with the oldest possible deps
- uses: dtolnay/rust-toolchain@nightly
- uses: risc0/risc0/.github/actions/rustup
- env:
INPUT_TOOLCHAIN: 'nightly'
- run: cargo -Z minimal-versions check --no-default-features --features serde
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
Expand Down

0 comments on commit 292f5f5

Please sign in to comment.