FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
forgecode/Cross.toml at main · DotWasi/forgecode · GitHub
DotWasi
/
forgecode
Public
forked from
tailcallhq/forgecode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
forgecode
/
Cross.toml
Copy path
More file actions
More file actions
Latest commit
History
History
History
75 lines (69 loc) · 4.04 KB
Breadcrumbs
forgecode
/
Cross.toml
Copy path
File metadata and controls
75 lines (69 loc) · 4.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
[
build
]
#
Build the build script in the container to avoid GLIBC mismatch
build-std
=
false
default-target
=
"
x86_64-unknown-linux-gnu
"
[
build
.
env
]
passthrough
= [
"
APP_VERSION
"
,
"
POSTHOG_API_SECRET
"
,
]
#
Install modern protoc in all Cross containers
#
apt-get's protobuf-compiler is too old (proto2 only), so we download from GitHub.
#
#
The default Ubuntu mirrors baked into cross images (archive.archive.ubuntu.com,
#
security.archive.ubuntu.com) are frequently unreachable from GitHub Actions
#
runners. Switch them to the Azure-hosted mirror (azure.archive.ubuntu.com),
#
which is co-located with GitHub's Linux runners and is reliable.
[
target
.
x86_64-unknown-linux-musl
]
image
=
"
ghcr.io/cross-rs/x86_64-unknown-linux-musl:edge
"
pre-build
= [
"
sed -i 's|http://[a-z.]*archive.ubuntu.com|http://azure.archive.ubuntu.com|g; s|http://security.ubuntu.com|http://azure.archive.ubuntu.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
"
,
"
apt-get update && apt-get install -y unzip
"
,
"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local bin/protoc
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local 'include/*'
"
,
"
chmod +x /usr/local/bin/protoc
"
,
]
[
target
.
aarch64-unknown-linux-musl
]
image
=
"
ghcr.io/cross-rs/aarch64-unknown-linux-musl:edge
"
pre-build
= [
"
sed -i 's|http://[a-z.]*archive.ubuntu.com|http://azure.archive.ubuntu.com|g; s|http://security.ubuntu.com|http://azure.archive.ubuntu.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
"
,
"
dpkg --add-architecture amd64
"
,
"
apt-get update && apt-get install -y unzip:amd64
"
,
"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local bin/protoc
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local 'include/*'
"
,
"
chmod +x /usr/local/bin/protoc
"
,
]
[
target
.
x86_64-unknown-linux-gnu
]
image
=
"
ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge
"
pre-build
= [
"
sed -i 's|http://[a-z.]*archive.ubuntu.com|http://azure.archive.ubuntu.com|g; s|http://security.ubuntu.com|http://azure.archive.ubuntu.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
"
,
"
apt-get update && apt-get install -y unzip
"
,
"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local bin/protoc
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local 'include/*'
"
,
"
chmod +x /usr/local/bin/protoc
"
,
]
[
target
.
aarch64-unknown-linux-gnu
]
image
=
"
ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge
"
pre-build
= [
"
sed -i 's|http://[a-z.]*archive.ubuntu.com|http://azure.archive.ubuntu.com|g; s|http://security.ubuntu.com|http://azure.archive.ubuntu.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
"
,
"
dpkg --add-architecture amd64
"
,
"
apt-get update && apt-get install -y unzip:amd64
"
,
"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local bin/protoc
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local 'include/*'
"
,
"
chmod +x /usr/local/bin/protoc
"
,
]
[
target
.
aarch64-linux-android
]
image
=
"
ghcr.io/cross-rs/aarch64-linux-android:edge
"
pre-build
= [
"
sed -i 's|http://[a-z.]*archive.ubuntu.com|http://azure.archive.ubuntu.com|g; s|http://security.ubuntu.com|http://azure.archive.ubuntu.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
"
,
"
dpkg --add-architecture amd64
"
,
"
apt-get update && apt-get install -y unzip:amd64
"
,
"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local bin/protoc
"
,
"
unzip -o protoc-28.3-linux-x86_64.zip -d /usr/local 'include/*'
"
,
"
chmod +x /usr/local/bin/protoc
"
,
]
Back
|
FazBrowse Home
|
New Git URL