blob: 4670b2bd1b49e1774715c4f8b75a97a7c5c87aa1 [file] [log] [blame]
on:
push:
branches: [main]
pull_request:
branches: [main]
name: Continuous integration
jobs:
test :
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- i686-unknown-linux-musl
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --target ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
command: test
args: --target ${{ matrix.target }} --features std
# only cargo build
msrv:
name: MSRV check
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- i686-unknown-linux-musl
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.31.0
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --features std