mirror of
https://github.com/veeso/termscp.git
synced 2026-06-10 18:49:04 +02:00
Pin every action to a commit SHA whose tag comment matches (verified via gh api), add least-privilege permissions, set persist-credentials: false, and replace the archived actions-rs/cargo with a plain cargo test. zizmor clean at default persona.
44 lines
952 B
YAML
44 lines
952 B
YAML
name: MacOS
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "*.md"
|
|
- "./site/**/*"
|
|
push:
|
|
branches: [ main ]
|
|
paths-ignore:
|
|
- "*.md"
|
|
- "./site/**/*"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
- name: Install dependencies
|
|
run: |
|
|
brew update
|
|
brew install \
|
|
pkg-config \
|
|
samba
|
|
brew link --force samba
|
|
- name: Build
|
|
run: cargo build
|
|
- name: Run tests
|
|
run: cargo test --verbose --features github-actions
|
|
- name: Clippy
|
|
run: cargo clippy -- -Dwarnings
|