mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-20 08:34:04 +01:00
This commit updates the build and release workflow to enable multi-arch builds and releases. A number of Rust-specific actions have been added, namely rust-cache to handle cargo caching and actions-rust-cross to handle cross-compilation. A release-dry-run target has been added to run on master which should help catch any issues in release workflow changes early. Releases drop goreleaser entirely in favour of action-gh-release which was already in use to add msi installers to the releases previously created by goreleaser.
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
|
|
export RUST_BACKTRACE := "full"
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|
|
cargo +stable clippy
|
|
prettier --write .github/ISSUE_TEMPLATE/bug_report.yml
|
|
prettier --write .github/ISSUE_TEMPLATE/config.yml
|
|
prettier --write .github/ISSUE_TEMPLATE/feature_request.yml
|
|
prettier --write .github/dependabot.yml
|
|
prettier --write .github/FUNDING.yml
|
|
prettier --write .github/workflows/windows.yaml
|
|
|
|
install-targets *targets:
|
|
"{{ targets }}" -split ' ' | ForEach-Object { just install-target $_ }
|
|
|
|
install-target target:
|
|
cargo +stable install --path {{ target }} --locked
|
|
|
|
install:
|
|
just install-targets komorebic komorebic-no-console komorebi komorebi-bar komorebi-gui
|
|
|
|
run target:
|
|
cargo +stable run --bin {{ target }} --locked
|
|
|
|
warn $RUST_LOG="warn":
|
|
just run
|
|
|
|
info $RUST_LOG="info":
|
|
just run
|
|
|
|
debug $RUST_LOG="debug":
|
|
just run
|
|
|
|
trace $RUST_LOG="trace":
|
|
just run
|
|
|
|
deadlock $RUST_LOG="trace":
|
|
cargo +stable run --bin komorebi --locked --features deadlock_detection
|
|
|
|
docgen:
|
|
cargo run --package komorebic -- docgen
|
|
Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName }
|
|
|
|
schemagen:
|
|
cargo run --package komorebic -- static-config-schema > schema.json
|
|
cargo run --package komorebic -- application-specific-configuration-schema > schema.asc.json
|
|
cargo run --package komorebi-bar -- --schema > schema.bar.json
|
|
generate-schema-doc .\schema.json --config template_name=js_offline --config minify=false .\static-config-docs\
|
|
|
|
generate-schema-doc .\schema.bar.json --config template_name=js_offline --config minify=false .\bar-config-docs\
|
|
|
|
rm -Force .\bar-config-docs\schema.html
|
|
mv .\bar-config-docs\schema.bar.html .\bar-config-docs\schema.html
|