Bump MSRV to 1.82 for "unsafe extern" #283
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Rust Matrix CI | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04, ubuntu-24.04, macos-13, macos-14 ] | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
- 1.77.2 # MSRV | |
steps: | |
- name: Install dependencies | |
run: sudo apt -y update && sudo apt -y install flex bison | |
if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
- name: Install Rust ${{ matrix.toolchain }} | |
run: | | |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal | |
rustup override set ${{ matrix.toolchain }} | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.toolchain }}-${{ matrix.os }} | |
- 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: | |
- name: Install Rust | |
run: rustup toolchain install stable --profile minimal | |
- name: Install cross | |
run: cargo install cross | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.target }} | |
- run: cross build --target=${{ matrix.target }} |