Skip to content

Commit

Permalink
Merge tag 'cpufeatures-v0.2.9' into bring-in-cpufeatures-v0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
eranrund committed Sep 13, 2023
2 parents 7c1804b + 0726c7d commit dc01c44
Show file tree
Hide file tree
Showing 91 changed files with 5,057 additions and 1,767 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
13 changes: 8 additions & 5 deletions .github/workflows/blobby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: blobby
Expand All @@ -25,14 +28,14 @@ jobs:
- 1.39.0 # MSRV
- stable
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/block-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: block-buffer
Expand All @@ -22,21 +25,21 @@ jobs:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- 1.56.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --release --target ${{ matrix.target }}
targets: ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -48,15 +51,15 @@ jobs:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
- run: cargo test --all-features --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
- run: cargo test --all-features
17 changes: 8 additions & 9 deletions .github/workflows/block-padding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: block-padding
Expand All @@ -28,14 +31,12 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
Expand All @@ -51,11 +52,9 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test
50 changes: 23 additions & 27 deletions .github/workflows/cmov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: cmov
on:
pull_request:
paths:
- ".github/workflows/cmov.yml"
- "cmov/**"
- "Cargo.*"
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: cmov
Expand All @@ -27,22 +31,20 @@ jobs:
strategy:
matrix:
rust:
- 1.59.0 # MSRV
- 1.60.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo build --release --target ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }}

test:
strategy:
Expand All @@ -51,36 +53,34 @@ jobs:
# 32-bit Linux
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV
deps: sudo apt update && sudo apt install gcc-multilib

# 64-bit Linux
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV

# 64-bit Windows
- target: x86_64-pc-windows-msvc
platform: windows-latest
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV

# 64-bit macOS
- target: x86_64-apple-darwin
platform: macos-latest
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
profile: minimal
override: true
targets: ${{ matrix.target }}
- run: ${{ matrix.deps }}
- run: cargo test --release
- run: cargo test --target ${{ matrix.target }}

# Cross-compiled tests
cross:
Expand All @@ -89,25 +89,21 @@ jobs:
include:
# ARM64
- target: aarch64-unknown-linux-gnu
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV
- target: aarch64-unknown-linux-gnu
rust: stable

# PPC32
- target: powerpc-unknown-linux-gnu
rust: 1.59.0 # MSRV
rust: 1.60.0 # MSRV
- target: powerpc-unknown-linux-gnu
rust: stable

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
profile: minimal
override: true
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cross-install@master
- run: cross test --release --target ${{ matrix.target }}
- run: cross test --target ${{ matrix.target }}
56 changes: 30 additions & 26 deletions .github/workflows/cpufeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: cpufeatures
Expand Down Expand Up @@ -42,35 +45,36 @@ jobs:
rust: stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
profile: minimal
targets: ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }}

# macOS tests
macos:
strategy:
matrix:
toolchain:
- 1.40.0 # MSRV
# TODO(tarcieri): try re-enabling this when we bump MSRV
# - 1.40.0 # MSRV
- stable
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: x86_64-apple-darwin
override: true
- run: cargo test --release
targets: x86_64-apple-darwin
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test

# Windows tests
windows:
Expand All @@ -85,15 +89,15 @@ jobs:
toolchain: stable
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
- run: cargo test --target ${{ matrix.target }} --release
targets: ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test --target ${{ matrix.target }}

# Cross-compiled tests
cross:
Expand All @@ -108,13 +112,13 @@ jobs:
rust: stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
profile: minimal
- run: cargo install cross
- run: cross test --target ${{ matrix.target }} --release
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cross-install@master
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cross test --target ${{ matrix.target }}
Loading

0 comments on commit dc01c44

Please sign in to comment.