Skip to content

Chore: Upgrade memchr and set edition to 2024 #6

Chore: Upgrade memchr and set edition to 2024

Chore: Upgrade memchr and set edition to 2024 #6

Workflow file for this run

name: Tests
on:
push:
branches: [master]
paths:
- '.github/workflows/test.yml'
- '**.rs'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
branches: [master]
paths:
- '.github/workflows/test.yml'
- '**.rs'
- 'Cargo.toml'
- 'Cargo.lock'
jobs:
test:
name: Test target ${{ matrix.target }} on ${{ matrix.os }} for ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
toolchain: [stable, nightly]
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
minimal_setup: false
# minimal_setup: This is needed for targets that don't support our dev dependencies.
# It also excludes the default features, i.e. [tty].
# For instance, "wasm32-wasi" is such a target.
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.target }}
if: ${{ !matrix.minimal_setup }}
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --target=${{ matrix.target }}
if: ${{ !matrix.minimal_setup }}
- name: cargo build without default features and without dev dependencies
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=${{ matrix.target }} --no-default-features
if: ${{ matrix.minimal_setup }}