mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Trying to get CI/CD to produce firezone-windows-client.exe. Can't remember if I need both a PR and a draft release or just the draft release for that. --------- Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com> Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
20 lines
619 B
Bash
Executable File
20 lines
619 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: ./ci_check.bash
|
|
|
|
# Performs static checks similar to what the Github Actions workflows will do, so errors can be caught before committing.
|
|
|
|
# ReactorScram uses this in the Git pre-commit hook on her Windows dev system.
|
|
|
|
# Fail on any non-zero return code
|
|
set -euo pipefail
|
|
|
|
# Fail on yaml workflow errors
|
|
yamllint ../../.github/workflows/*
|
|
|
|
# Fail on Rust errors
|
|
pushd .. > /dev/null
|
|
cargo clippy --all-targets --all-features -p firezone-windows-client -- -D warnings
|
|
cargo fmt --check
|
|
cargo doc --all-features --no-deps --document-private-items -p firezone-windows-client
|
|
popd > /dev/null
|