Skip to content

Commit 2daee64

Browse files
committed
Setup envs required to build
1 parent 4abc43b commit 2daee64

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/_build-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
required: false
1212
type: string
1313

14+
env:
15+
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
16+
1417
jobs:
1518
build-binaries:
1619
name: Build ${{ matrix.target }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
needs: verify-version
6262
if: ${{ needs.verify-version.outputs.versionIsValid == 'true' }}
6363
uses: ./.github/workflows/_build-binaries.yml
64+
secrets: inherit
6465
with:
6566
version: ${{ needs.verify-version.outputs.version }}
6667

Cross.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[build.env]
2+
passthrough = ["ALCHEMY_API_KEY"]
3+
4+
# TODO(#3790) Setup cross for native
5+
#[build]
6+
#pre-build = [
7+
# "dpkg --add-architecture $CROSS_DEB_ARCH",
8+
# "apt-get update",
9+
# "apt-get install -y --no-install-recommends ca-certificates gnupg wget software-properties-common lsb-release",
10+
# "apt-get install -y --no-install-recommends zlib1g-dev libzstd-dev zlib1g-dev:$CROSS_DEB_ARCH libzstd-dev:$CROSS_DEB_ARCH",
11+
# "echo \"deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main\" > /etc/apt/sources.list.d/llvm-toolchain-focal.list",
12+
# "echo \"deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main\" >> /etc/apt/sources.list.d/llvm-toolchain-focal.list",
13+
# "wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -",
14+
# "apt-get update",
15+
# "apt-get install -y --no-install-recommends llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools",
16+
#]
17+
#
18+
#[target.x86_64-unknown-linux-gnu.env]
19+
#passthrough = [
20+
# "MLIR_SYS_190_PREFIX=/usr/lib/llvm-19",
21+
# "LLVM_SYS_191_PREFIX=/usr/lib/llvm-19",
22+
# "TABLEGEN_190_PREFIX=/usr/lib/llvm-19",
23+
#]

0 commit comments

Comments
 (0)