forked from tuist/tuist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
100 lines (87 loc) · 3.26 KB
/
mise.toml
File metadata and controls
100 lines (87 loc) · 3.26 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[tools]
tuist = "4.162.1"
swiftlint = "0.59.1"
"elixir" = "1.19.1"
"erlang" = "28.1"
swiftformat = "0.58.7"
git-cliff = "2.6.0"
sops = "3.9.3"
age = "1.2.1"
protoc = "32.1"
"1password-cli" = "2.32.0"
bats = "1.11.1"
java = "21"
gradle = "8.12"
[hooks]
postinstall = "{{config_root}}/mise/tasks/install.sh"
[env]
TUIST_CACHE_CONCURRENCY_LIMIT="none"
# Elixir recommends half of the number of cores: https://elixir-lang.org/blog/2025/10/16/elixir-v1-19-0-released/
MIX_OS_DEPS_COMPILE_PARTITION_COUNT=4
TUIST_HOSTED = "1"
TUIST_S3_VIRTUAL_HOST = "1"
TUIST_S3_BUCKET_AS_HOST = "1"
TUIST_S3_REGION = "auto"
TUIST_S3_TIGRIS_BUCKET_AS_HOST = "0"
TUIST_S3_TIGRIS_VIRTUAL_HOST = "0"
ERL_AFLAGS = "-kernel shell_history enabled -kernel shell_history_file_bytes 1024000"
# Only used in a local, development environment
TUIST_CACHE_API_KEY = "7a3de63bb6136d94539e9976b1c54bfd553467c2c4775f84b7b2baf27f8b38c6"
[tasks.cla-sign]
description = "Sign the CLA by adding current user to signatures.json"
run = '''
#!/usr/bin/env bash
set -euo pipefail
SIGNATURES_FILE="server/cla/signatures.json"
REPO_ID="250427618" # tuist/tuist repository ID
echo "Adding your signature to the CLA..."
# Get current user info from GitHub
user_info=$(gh api user)
user_login=$(echo "$user_info" | jq -r '.login')
user_name=$(echo "$user_info" | jq -r '.name // .login')
user_id=$(echo "$user_info" | jq -r '.id')
echo "Signing CLA for: $user_name ($user_login)"
# Check if user already signed
if [[ -f "$SIGNATURES_FILE" ]]; then
existing_signature=$(jq -r --arg login "$user_login" '.signedContributors[]? | select(.id == ($login | tonumber))' "$SIGNATURES_FILE" 2>/dev/null || echo "")
if [[ -n "$existing_signature" ]]; then
echo "✅ You have already signed the CLA!"
exit 0
fi
fi
# Create signatures file if it doesn't exist
if [[ ! -f "$SIGNATURES_FILE" ]]; then
echo '{"signedContributors":[]}' > "$SIGNATURES_FILE"
fi
# Create new signature entry
current_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
new_signature=$(jq -n \
--arg name "$user_name" \
--arg id "$user_id" \
--arg created_at "$current_time" \
--arg repo_id "$REPO_ID" \
'{
name: $name,
id: ($id | tonumber),
comment_id: "",
created_at: $created_at,
repoId: ($repo_id | tonumber),
pullRequestNo: null
}')
# Add signature to the file
temp_file=$(mktemp)
jq --argjson new_sig "$new_signature" '.signedContributors += [$new_sig]' "$SIGNATURES_FILE" > "$temp_file"
mv "$temp_file" "$SIGNATURES_FILE"
echo "✅ CLA signature added successfully!"
echo "📝 Your signature has been recorded in $SIGNATURES_FILE"
echo ""
echo "Next steps:"
echo "1. Commit the updated signatures file: git add $SIGNATURES_FILE && git commit -m \"add CLA signature for $user_name\""
echo "2. Push your changes to complete the CLA signing process"
'''
[settings]
jobs = 6
http_timeout = "60"
experimental = true
sops.age_key_file = "~/.config/mise/tuist-age.txt"
sops.strict = false