Add --locked to readme #249
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: | |
pull_request: | |
push: | |
branches: | |
- 8.x | |
- try/** | |
tags-ignore: | |
- v*.*.* | |
name: Checks & Tests | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_UNSTABLE_SPARSE_REGISTRY: "true" | |
jobs: | |
check-and-test: | |
strategy: | |
matrix: | |
platform: | |
- ubuntu | |
- windows | |
- macos | |
toolchain: | |
- stable | |
- 1.70.0 | |
name: Test on ${{ matrix.platform }} with ${{ matrix.toolchain }} | |
runs-on: "${{ matrix.platform }}-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure toolchain | |
run: | | |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update -c clippy | |
rustup default ${{ matrix.toolchain }} | |
- name: Check | |
run: cargo check | |
- name: Install | |
run: cargo install --debug --path . | |
- name: Test | |
run: cargo test | |
- name: Clippy | |
if: matrix.toolchain == 'stable' | |
run: cargo clippy | |
check-only: | |
strategy: | |
matrix: | |
target: | |
- x86_64-unknown-freebsd | |
- x86_64-unknown-linux-musl | |
- armv7-unknown-linux-gnueabihf | |
- aarch64-unknown-linux-gnu | |
- aarch64-apple-darwin | |
- aarch64-pc-windows-msvc | |
include: | |
- target: x86_64-unknown-freebsd | |
platform: ubuntu-latest | |
- target: x86_64-unknown-linux-musl | |
platform: ubuntu-latest | |
- target: armv7-unknown-linux-gnueabihf | |
platform: ubuntu-latest | |
- target: aarch64-unknown-linux-gnu | |
platform: ubuntu-latest | |
- target: aarch64-apple-darwin | |
platform: macos-latest | |
- target: aarch64-pc-windows-msvc | |
platform: windows-latest | |
name: Check only for ${{ matrix.target }} | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure toolchain | |
run: | | |
rustup toolchain install stable --profile minimal --no-self-update --target ${{ matrix.target }} | |
rustup default stable | |
- name: Check | |
run: cargo check --target ${{ matrix.target }} | |