fix(github-actions): use rust toolchain arm64 version for macos 14 (#355)

* fix(osx): use rust toolchain arm version for macos 14

* feat(ntex-bytes): remove conflicting serde feature flag
This commit is contained in:
msga-mmm 2024-05-05 03:16:13 -05:00 committed by GitHub
parent 49a4867005
commit 1b3a530fb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -11,7 +11,7 @@ jobs:
- stable
- nightly
name: ${{ matrix.version }} - x86_64-apple-darwin
name: ${{ matrix.version }} - aarch64-apple-darwin
runs-on: macOS-latest
steps:
@ -20,7 +20,7 @@ jobs:
- name: Install ${{ matrix.version }}
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.version }}-x86_64-apple-darwin
toolchain: ${{ matrix.version }}-aarch64-apple-darwin
- name: Generate Cargo.lock
run: cargo generate-lockfile
@ -29,13 +29,13 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ matrix.version }}-x86_64-apple-darwin-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
key: ${{ matrix.version }}-aarch64-apple-darwin-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ matrix.version }}-x86_64-apple-darwin-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
key: ${{ matrix.version }}-aarch64-apple-darwin-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
run: cargo test --all --all-features --no-fail-fast -- --nocapture

View file

@ -1,4 +1,3 @@
#![cfg(feature = "serde")]
#![deny(warnings, rust_2018_idioms)]
use serde_test::{assert_tokens, Token};