forked from restatedev/restate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist-workspace.toml
70 lines (58 loc) · 2.44 KB
/
dist-workspace.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[workspace]
members = ["cargo:."]
# Config for 'dist'
[dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.28.0"
# CI backends to support
ci = "github"
github-attestations = true
# The installers to generate for each app
installers = ["homebrew"]
# A GitHub repo to push Homebrew formulas to
tap = "restatedev/homebrew-tap"
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-unknown-linux-musl"]
macos-sign = true
github-build-setup = "steps/release-build-setup.yml"
include = ["NOTICE"]
precise-builds = true
cache-builds = false
# npm and docker can handle pre-releases, we will skip homebrew manually
publish-prereleases = true
# ci goes here because we want it to start early, and we don't want to create a release unless it succeeds
local-artifacts-jobs = ["./ci"]
# create release goes here because it needs to have happened before the host steps, which expect a draft release to already exist
global-artifacts-jobs = ["./notarize"]
# we still need to include the native 'npm' job as well as our './npm' one, because otherwise publish-prereleases=true is ignored. It will do nothing.
# https://github.com/axodotdev/cargo-dist/issues/1744
publish-jobs = ["./homebrew", "./docker-release", "./npm", "npm", "./release-notes"]
# helm goes here because it shouldn't exist before docker-release happens
post-announce-jobs = ["./helm"]
[dist.github-custom-job-permissions.ci]
packages = "read"
contents = "read"
issues = "read"
checks = "write"
pull-requests = "write"
actions = "read"
[dist.github-custom-job-permissions.npm]
packages = "read"
contents = "read"
[dist.github-custom-job-permissions.release-notes]
contents = "write"
[dist.dependencies.homebrew]
protobuf = "*"
[dist.github-custom-runners.global]
runner = "warp-ubuntu-latest-arm64-2x"
[dist.github-custom-runners.aarch64-apple-darwin]
runner = "warp-macos-latest-arm64-6x"
[dist.github-custom-runners.x86_64-apple-darwin]
runner = "warp-macos-latest-arm64-6x"
host = "aarch64-apple-darwin"
[dist.github-custom-runners.aarch64-unknown-linux-musl]
runner = "warp-ubuntu-latest-arm64-16x"
container = { image = "ghcr.io/restatedev/dev-tools", host = "aarch64-unknown-linux-musl" }
[dist.github-custom-runners.x86_64-unknown-linux-musl ]
runner = "warp-ubuntu-latest-x64-16x"
container = { image = "ghcr.io/restatedev/dev-tools", host = "x86_64-unknown-linux-musl" }