8000 chore: separating publish dry run from build · steganogram/.github@a89e47b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: separating publish dry run from build #1

FF2A

chore: separating publish dry run from build

chore: separating publish dry run from build #1

Workflow file for this run

name: Build
on:
push:
branches: ["*"]
pull_request:
branches: [main]
workflow_call:
workflow_dispatch:
jobs:
check:
name: check
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: sassman/.github/.github/actions/rust-toolchain@main
- run: cargo check
lint:
name: lint
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
cargo-cmd:
- fmt --all -- --check
- clippy --all-targets -- -D warnings
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: sassman/.github/.github/actions/rust-toolchain@main
- run: cargo ${{ matrix['cargo-cmd'] }}
tests:
name: tests
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
channel: ["nightly", "stable"]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.channel == 'nightly' }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: sassman/.github/.github/actions/rust-toolchain@main
with:
channel: ${{ matrix.channel }}
default: true
profile: minimal
- name: cargo test
if: matrix.os != 'windows-latest'
run: |
if [ -f "Cargo.lock" ]; then
cargo test --all --locked
else
cargo test --all
fi
- name: cargo test
if: matrix.os == 'windows-latest'
run: |
# Windows PowerShell is a disaster
if (Test-Path "Cargo.lock") {
cargo test --all --locked
} else {
cargo test --all
}
audit:
name: security audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: sassman/.github/.github/actions/rust-toolchain@main
- uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: audit
run: cargo deny check advisories bans sources
continue-on-error: true
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: sassman/.github/.github/actions/rust-toolchain@main
- name: check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps
0