Bump built from 0.7.3 to 0.7.4 #93
Workflow file for this run
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
# SPDX-FileCopyrightText: © 2024 Matt Williams <matt@milliams.com> | |
# SPDX-License-Identifier: MIT | |
name: Check | |
on: | |
push: | |
pull_request: | |
workflow_call: | |
inputs: | |
ref: | |
type: string | |
default: '' | |
permissions: | |
contents: read | |
jobs: | |
licenses: | |
name: License REUSE spec | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Install reuse | |
run: | | |
python -m venv ~/venv | |
~/venv/bin/pip install reuse | |
- name: Check REUSE spec | |
run: ~/venv/bin/reuse lint | |
changelog: | |
name: Changelog format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Install kacl | |
run: | | |
python -m venv ~/venv | |
~/venv/bin/pip install python-kacl | |
- name: Check changelog format | |
run: ~/venv/bin/kacl-cli verify | |
code-checks: | |
name: Tests and lints | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: "x86_64-unknown-linux-gnu" | |
os: "ubuntu-latest" | |
cross: false | |
- target: "aarch64-unknown-linux-gnu" | |
os: "ubuntu-latest" | |
cross: true | |
- target: "x86_64-pc-windows-gnu" | |
os: "ubuntu-latest" | |
cross: true | |
- target: "aarch64-apple-darwin" | |
os: "macOS-latest" | |
cross: false | |
- target: "x86_64-apple-darwin" | |
os: "macOS-latest" | |
cross: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
targets: ${{ matrix.target }} | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cross | |
uses: taiki-e/install-action@cross | |
if: matrix.cross | |
- name: Formatting | |
run: cargo fmt --check | |
- name: Linting | |
run: cargo clippy | |
- name: Build | |
run: cargo build --target=${{ matrix.target }} | |
if: ${{ ! matrix.cross }} | |
- name: Build | |
run: cross build --target=${{ matrix.target }} | |
if: matrix.cross |