From ba6f3a60aa071fbbf8e07bff6e87e30f65035815 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 9 Mar 2024 21:27:20 +0100 Subject: [PATCH 1/3] Remove obsolete lint directive --- src/ptr.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ptr.rs b/src/ptr.rs index 3193fab..3f26034 100644 --- a/src/ptr.rs +++ b/src/ptr.rs @@ -6,8 +6,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![allow(unknown_lints, suspicious_auto_trait_impls)] - use rawpointer::PointerExt; /// A Send + Sync raw pointer wrapper From 13338676f541a970953f24f2b38ed7de3adc61a3 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 9 Mar 2024 21:30:44 +0100 Subject: [PATCH 2/3] ci: Test with cargo-careful and ThreadSanitizer --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12c390f..95a82a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,19 @@ jobs: MMTEST_FAST_TEST: 1 RUSTFLAGS: -Copt-level=2 + cargo-careful: + runs-on: ubuntu-latest + name: cargo-careful + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + - uses: Swatinem/rust-cache@v2 + - name: Install cargo-careful + run: cargo install cargo-careful + - run: cargo careful test -Zcareful-sanitizer=thread --features=threading,cgemm + miri: runs-on: ubuntu-latest steps: From a5c212783ccb8d10d1109e24a9b18d4db08db500 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 9 Mar 2024 21:35:55 +0100 Subject: [PATCH 3/3] ci: Update github action versions --- .github/workflows/ci.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95a82a6..39dd7a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,14 +56,13 @@ jobs: features: threading cgemm test_examples: yes_examples + name: tests/${{ matrix.target }}/${{ matrix.rust }} steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - name: Install dependencies if: matrix.install_deps run: ${{ matrix.install_deps }} @@ -104,14 +103,13 @@ jobs: experimental: false target: thumbv6m-none-eabi + name: nostd-build/${{ matrix.target }}/${{ matrix.rust }} steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - name: Tests run: | cargo rustc "--target=${{ matrix.target }}" --manifest-path=ensure_no_std/Cargo.toml @@ -128,14 +126,13 @@ jobs: target: aarch64-unknown-linux-gnu features: cgemm + name: cross_test/${{ matrix.target }}/${{ matrix.rust }} steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable with: profile: minimal - toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - name: Cache cargo plugins id: cache uses: actions/cache@v1 @@ -156,7 +153,7 @@ jobs: name: cargo-careful steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - uses: Swatinem/rust-cache@v2 @@ -167,7 +164,7 @@ jobs: miri: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Miri run: ci/miri.sh --features cgemm