From 292f5f530786f4d4c26044486f5a0e165e0298e8 Mon Sep 17 00:00:00 2001 From: Joby Thundil Date: Thu, 28 Sep 2023 15:00:55 -0400 Subject: [PATCH] enable CI --- .github/workflows/cross.yml | 2 +- .github/workflows/curve25519-dalek.yml | 17 ++++++++++------- .github/workflows/ed25519-dalek.yml | 4 +++- .github/workflows/workspace.yml | 16 ++++++++++------ .github/workflows/x25519-dalek.yml | 4 +++- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 40e89f40a..99e5e2651 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -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 }} diff --git a/.github/workflows/curve25519-dalek.yml b/.github/workflows/curve25519-dalek.yml index 04ec5423d..ca582208b 100644 --- a/.github/workflows/curve25519-dalek.yml +++ b/.github/workflows/curve25519-dalek.yml @@ -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: @@ -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 @@ -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: @@ -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 @@ -105,7 +105,7 @@ 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, @@ -113,6 +113,7 @@ jobs: # 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: @@ -120,7 +121,7 @@ jobs: 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. @@ -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 diff --git a/.github/workflows/ed25519-dalek.yml b/.github/workflows/ed25519-dalek.yml index 4fb4c15b5..f4f491741 100644 --- a/.github/workflows/ed25519-dalek.yml +++ b/.github/workflows/ed25519-dalek.yml @@ -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 diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 09d1cfa0e..01976e288 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -37,7 +37,9 @@ 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: @@ -45,7 +47,7 @@ jobs: 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"' @@ -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 @@ -85,9 +87,11 @@ 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: @@ -95,7 +99,7 @@ jobs: 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 @@ -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 diff --git a/.github/workflows/x25519-dalek.yml b/.github/workflows/x25519-dalek.yml index 838b0d063..405586fb0 100644 --- a/.github/workflows/x25519-dalek.yml +++ b/.github/workflows/x25519-dalek.yml @@ -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