Skip to content

cleanup

cleanup #29

name: Follow README.md
on: [ push, pull_request ]
permissions:
contents: write
packages: read
id-token: write
jobs:
build:
name: check README.md
runs-on:
- lab
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
toolchain:
- 1.81.0 # expected release target
- stable # floating
- nightly-2024-10-10 # Pinned nightly
- 1.80.1 # MSRV
- beta # floating
- nightly # floating
llvm:
- 18
- 19
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
profile:
- debug
- release
just_version:
- 1.36.0
steps:
- name: login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: install just
uses: extractions/setup-just@v2
with:
just-version: ${{matrix.just_version}}
- name: install rustup
uses: dtolnay/rust-toolchain@stable
- name: Checkout
uses: actions/checkout@v4
- run: just install-rust-toolchain ${{matrix.toolchain}}
- run: just --yes llvm_version=${{matrix.llvm}} refresh-compile-env
- run: just --yes fake-nix
- name: build
run: just cargo +${{matrix.toolchain}} build --profile=${{matrix.profile}} --target=${{matrix.target}}
- name: test
run: just cargo +${{matrix.toolchain}} test --profile=${{matrix.profile}} --target=${{matrix.target}}