Skip to content

chore(main): release babyrite 0.13.15 #372

chore(main): release babyrite 0.13.15

chore(main): release babyrite 0.13.15 #372

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Setup cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "babyrite/gh-actions-cache"
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features
- name: Run test
run: cargo test --verbose
build:
name: build (${{ matrix.job.target }})
runs-on: ${{ matrix.job.os || 'ubuntu-latest' }}
needs: check
strategy:
fail-fast: false
matrix:
# Note: babyrite will no longer support Windows
job:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
use-cross: false
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
use-cross: true
- os: macos-latest
target: x86_64-apple-darwin
use-cross: false
- os: macos-latest
target: aarch64-apple-darwin
use-cross: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.job.target }}
- name: Setup cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "babyrite/gh-actions-cache"
- name: Install cross
if: matrix.job.use-cross
run: cargo install cross
# note: In Ubuntu-latest (Ubuntu 24), musl-tools has disappeared, so it must be installed separately.
- name: Install musl-gcc
if: matrix.job.target == 'x86_64-unknown-linux-musl'
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build
run: |
cargo build --verbose --target ${{ matrix.job.target }}