mirror of
https://github.com/j178/prek.git
synced 2026-04-25 02:11:36 +02:00
b6c591dbbc
Reimplements the `@j178/prek` npm package. The package is now split into a dependency-free wrapper package plus platform-specific `optionalDependencies`, so the npm package no longer ships cargo-dist installer glue or extra runtime dependencies. Closes #1969 Closes #1918 Closes #1784 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
72 lines
2.8 KiB
TOML
72 lines
2.8 KiB
TOML
[workspace]
|
|
members = ["cargo:."]
|
|
|
|
# Config for 'dist'
|
|
[dist]
|
|
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
|
|
cargo-dist-version = "0.31.0"
|
|
# The archive format to use for non-windows builds (defaults .tar.xz)
|
|
unix-archive = ".tar.gz"
|
|
# CI backends to support
|
|
ci = "github"
|
|
# Whether CI should include auto-generated code to build local artifacts
|
|
build-local-artifacts = false
|
|
# Whether CI should trigger releases with dispatches instead of tag pushes
|
|
dispatch-releases = true
|
|
# Which actions to run on pull requests
|
|
pr-run-mode = "skip"
|
|
# Which phase dist should use to create the GitHub release
|
|
github-release = "announce"
|
|
# Whether to enable GitHub Attestations
|
|
github-attestations = true
|
|
# When to generate GitHub Attestations
|
|
github-attestations-phase = "announce"
|
|
# Whether to publish prereleases to package managers
|
|
publish-prereleases = true
|
|
# The installers to generate for each app
|
|
installers = ["shell", "powershell", "homebrew"]
|
|
# Target platforms to build apps for (Rust target-triple syntax)
|
|
targets = [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
"aarch64-pc-windows-msvc",
|
|
"arm-unknown-linux-musleabihf",
|
|
"armv7-unknown-linux-gnueabihf",
|
|
"armv7-unknown-linux-musleabihf",
|
|
"x86_64-apple-darwin",
|
|
"riscv64gc-unknown-linux-gnu",
|
|
"s390x-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"x86_64-pc-windows-msvc",
|
|
"i686-unknown-linux-gnu",
|
|
"i686-unknown-linux-musl",
|
|
"i686-pc-windows-msvc",
|
|
]
|
|
# Local artifacts jobs to run in CI
|
|
local-artifacts-jobs = ["./build-binaries", "./build-docker"]
|
|
# Publish jobs to run in CI
|
|
publish-jobs = ["./publish-crates", "./publish-pypi", "./publish-npm"]
|
|
# Post-announce jobs to run in CI
|
|
post-announce-jobs = [
|
|
"./publish-docs",
|
|
"./publish-homebrew",
|
|
"./publish-prek-action",
|
|
"./publish-winget",
|
|
]
|
|
github-custom-job-permissions = { "publish-docs" = { contents = "read", pages = "write", id-token = "write" }, "build-docker" = { packages = "write", contents = "read", attestations = "write", id-token = "write" }, "publish-winget" = {}, "publish-crates" = { id-token = "write" }, "publish-pypi" = { id-token = "write" }, "publish-npm" = { id-token = "write" }, "publish-homebrew" = {} }
|
|
# Whether to install an updater program
|
|
install-updater = false
|
|
# Path that installers should place binaries in
|
|
install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]
|
|
|
|
[dist.github-custom-runners]
|
|
global = "ubuntu-latest"
|
|
|
|
[dist.github-action-commits]
|
|
"actions/checkout" = "de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
|
|
"actions/upload-artifact" = "bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" # v7.0.0
|
|
"actions/download-artifact" = "70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3" # v8.0.0
|
|
"actions/attest-build-provenance" = "a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32" # v4.1.0
|