Skip to content

Use Box<str> instead of String to promote immutability #365

Use Box<str> instead of String to promote immutability

Use Box<str> instead of String to promote immutability #365

Workflow file for this run

name: Rust Matrix CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-24.04, macos-14, macos-15 ]
toolchain:
- stable
- beta
- nightly
- 1.91.1 # MSRV
steps:
- name: Install dependencies
run: sudo apt -y update && sudo apt -y install flex bison
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: sensorfu/setup-rust-action@v1
with:
cache-key: ${{ matrix.os }}-${{ matrix.toolchain }}
toolchain: ${{ matrix.toolchain }}
- run: cargo check -v
- run: cargo test -v
test-cross:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musleabi
- x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: sensorfu/setup-rust-action@v1
with:
cache-key: ${{ matrix.target }}
- name: Install cross
run: cargo install cross
- run: cross build --target=${{ matrix.target }}