mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-27 00:00:17 +02:00
ci: test AArch64 and run tests instead of build in cross job (#763)
This commit is contained in:
+18
-19
@@ -63,6 +63,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
|
- ubuntu-22.04-arm # TODO: update to 24.04 when https://github.com/rust-lang/rust/issues/135867 solved
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -104,29 +105,27 @@ jobs:
|
|||||||
name: cross
|
name: cross
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
include:
|
||||||
- i686-unknown-linux-gnu
|
- target: i686-unknown-linux-gnu
|
||||||
- armv7-unknown-linux-gnueabihf
|
os: ubuntu-latest
|
||||||
- powerpc-unknown-linux-gnu
|
- target: armv7-unknown-linux-gnueabihf
|
||||||
- powerpc64-unknown-linux-gnu
|
os: ubuntu-22.04-arm # TODO: update to 24.04 when https://github.com/rust-lang/rust/issues/135867 solved
|
||||||
- wasm32-unknown-unknown
|
- target: powerpc-unknown-linux-gnu
|
||||||
runs-on: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
- target: powerpc64-unknown-linux-gnu
|
||||||
|
os: ubuntu-latest
|
||||||
|
- target: wasm32-wasip1
|
||||||
|
os: ubuntu-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
- name: Install cross
|
- uses: taiki-e/setup-cross-toolchain-action@v1
|
||||||
uses: taiki-e/install-action@cross
|
with:
|
||||||
if: matrix.target != 'wasm32-unknown-unknown'
|
target: ${{ matrix.target }}
|
||||||
- name: cross build --target ${{ matrix.target }}
|
- name: Test
|
||||||
run: cross build --target ${{ matrix.target }}
|
run: cargo test --target ${{ matrix.target }}
|
||||||
if: matrix.target != 'wasm32-unknown-unknown'
|
|
||||||
# WASM support
|
|
||||||
- name: cargo build --target ${{ matrix.target }}
|
|
||||||
run: |
|
|
||||||
rustup target add ${{ matrix.target }}
|
|
||||||
cargo build --target ${{ matrix.target }}
|
|
||||||
if: matrix.target == 'wasm32-unknown-unknown'
|
|
||||||
|
|
||||||
# Sanitizers
|
# Sanitizers
|
||||||
tsan:
|
tsan:
|
||||||
|
|||||||
@@ -728,6 +728,7 @@ fn advance_past_len() {
|
|||||||
// Only run these tests on little endian systems. CI uses qemu for testing
|
// Only run these tests on little endian systems. CI uses qemu for testing
|
||||||
// big endian... and qemu doesn't really support threading all that well.
|
// big endian... and qemu doesn't really support threading all that well.
|
||||||
#[cfg(any(miri, target_endian = "little"))]
|
#[cfg(any(miri, target_endian = "little"))]
|
||||||
|
#[cfg(not(target_family = "wasm"))] // wasm without experimental threads proposal doesn't support threads
|
||||||
fn stress() {
|
fn stress() {
|
||||||
// Tests promoting a buffer from a vec -> shared in a concurrent situation
|
// Tests promoting a buffer from a vec -> shared in a concurrent situation
|
||||||
use std::sync::{Arc, Barrier};
|
use std::sync::{Arc, Barrier};
|
||||||
|
|||||||
Reference in New Issue
Block a user