Skip to content

Add CI workflow publish.yml for automatic publish (#69) #331

Add CI workflow publish.yml for automatic publish (#69)

Add CI workflow publish.yml for automatic publish (#69) #331

Workflow file for this run

name: msrv
on: [push, pull_request]
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
test:
name: msrv
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain add 1.58 nightly --no-self-update
rustup default 1.58
- name: Use minimal version and create Cargo.lock
run: |
./avoid-dev-deps.sh
cargo +nightly -Zminimal-versions update
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-features
msrv-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain add 1.58 --no-self-update --target wasm32-wasi
rustup toolchain add nightly --no-self-update
rustup default 1.58
- name: Use minimal version and create Cargo.lock
run: |
./avoid-dev-deps.sh
cargo +nightly -Zminimal-versions update
- uses: Swatinem/rust-cache@v2
- run: cargo check --target wasm32-wasi