From ad5b1fb20a8247ae2b760d2541c1c35110bd4e2d Mon Sep 17 00:00:00 2001 From: Joby Thundil Date: Mon, 2 Oct 2023 13:10:48 -0400 Subject: [PATCH] rm cross compile tests and cargo hack tests --- .github/workflows/cross.yml | 44 -------------------------- .github/workflows/curve25519-dalek.yml | 5 --- .github/workflows/workspace.yml | 3 -- 3 files changed, 52 deletions(-) delete mode 100644 .github/workflows/cross.yml diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml deleted file mode 100644 index 30738d235..000000000 --- a/.github/workflows/cross.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Cross - -on: - push: - branches: [ '**' ] - pull_request: - branches: [ '**' ] - -env: - CARGO_TERM_COLOR: always - RUSTFLAGS: '-D warnings' - -jobs: - - test-cross: - name: Test - strategy: - matrix: - include: - # ARM32 - - target: armv7-unknown-linux-gnueabihf - rust: stable - - # ARM64 - - target: aarch64-unknown-linux-gnu - rust: stable - - # PPC32 - - target: powerpc-unknown-linux-gnu - rust: stable - - # TODO: We only test x/ed/curve for cross as derive is platform specifics - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - run: ${{ matrix.deps }} - - uses: risc0/risc0/.github/actions/rustup@main - with: - toolchain: ${{ matrix.rust }} - targets: ${{ matrix.target }} - - uses: RustCrypto/actions/cross-install@master - - run: cross test -p curve25519-dalek --release --target ${{ matrix.target }} - - run: cross test -p ed25519-dalek --release --target ${{ matrix.target }} - - run: cross test -p x25519-dalek --release --target ${{ matrix.target }} diff --git a/.github/workflows/curve25519-dalek.yml b/.github/workflows/curve25519-dalek.yml index 6ffd281c2..f93899a9d 100644 --- a/.github/workflows/curve25519-dalek.yml +++ b/.github/workflows/curve25519-dalek.yml @@ -57,16 +57,11 @@ jobs: with: toolchain: stable targets: thumbv7em-none-eabi - - uses: taiki-e/install-action@cargo-hack # No default features build - name: no_std fiat / no feat ${{ matrix.crate }} env: RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"' run: cargo build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --no-default-features - - name: no_std fiat / cargo hack ${{ matrix.crate }} - env: - RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"' - run: cargo hack build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std,getrandom test-serial: name: Test serial backend diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 2739d7ca5..0dde8d29f 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -75,12 +75,9 @@ jobs: with: toolchain: stable targets: thumbv7em-none-eabi - - uses: taiki-e/install-action@cargo-hack # No default features build - name: no_std / no feat ${{ matrix.crate }} run: cargo build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --no-default-features - - name: no_std / cargo hack ${{ matrix.crate }} - run: cargo hack build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std,getrandom clippy: name: Check that clippy is happy