DUMMY COMMIT FOR CI #1146
Workflow file for this run
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
name: tests | |
on: | |
push: | |
branches: | |
- "*" | |
# not on tags | |
pull_request: | |
env: | |
BLAKE3_CI: "1" | |
RUSTFLAGS: "-D warnings" | |
RUST_BACKTRACE: "1" | |
jobs: | |
library_tests: | |
name: ${{ matrix.target.name }} ${{ matrix.channel }} | |
runs-on: ${{ matrix.target.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [ | |
{ "os": "ubuntu-latest", "toolchain": "x86_64-unknown-linux-gnu", "name": "Linux GNU" }, | |
{ "os": "macOS-latest", "toolchain": "x86_64-apple-darwin", "name": "macOS" }, | |
{ "os": "windows-latest", "toolchain": "x86_64-pc-windows-msvc", "name": "Windows MSVC" }, | |
{ "os": "windows-latest", "toolchain": "x86_64-pc-windows-gnu", "name": "Windows GNU" } | |
] | |
channel: [ | |
"stable", | |
"beta", | |
"nightly", | |
# The current MSRV. This crate doesn't have an official MSRV policy, | |
# but in practice we'll probably do what libc does: | |
# https://github.com/rust-lang/libs-team/issues/72. | |
# This test target is here so that we notice if we accidentally bump | |
# the MSRV, but it's not a promise that we won't bump it. | |
"1.70.0", | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }} | |
# Print the compiler version, for debugging. | |
- name: print compiler version | |
run: cargo run --quiet | |
working-directory: ./tools/compiler_version | |
# Print out instruction set support, for debugging. | |
- name: print instruction set support | |
run: cargo run --quiet | |
working-directory: ./tools/instruction_set_support | |
- name: cargo test C bindings assembly | |
run: cargo test | |
working-directory: ./c/blake3_c_rust_bindings | |
- name: cargo test C bindings intrinsics | |
run: cargo test --features=prefer_intrinsics | |
working-directory: ./c/blake3_c_rust_bindings | |
- name: cargo test C bindings no AVX-512 | |
run: cargo test | |
working-directory: ./c/blake3_c_rust_bindings | |
env: | |
CFLAGS: -DBLAKE3_NO_AVX512 | |
- name: cargo test C bindings no AVX2 | |
run: cargo test | |
working-directory: ./c/blake3_c_rust_bindings | |
env: | |
CFLAGS: -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 | |
- name: cargo test C bindings no SSE41 | |
run: cargo test | |
working-directory: ./c/blake3_c_rust_bindings | |
env: | |
CFLAGS: -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 | |
- name: cargo test C bindings no SSE2 | |
run: cargo test | |
working-directory: ./c/blake3_c_rust_bindings | |
env: | |
CFLAGS: -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 -DBLAKE3_NO_SSE2 |