-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup buck2 to build buck2 with remote execution
Enable setup to build buck2 with remote execution. * Create github action that generates .buckconfig.local using `NATIVELINK_HEADER_RW_KEY` from gha secrets. * Set `container-image` used for remote execution specific to setup of buck2. * Update .gitignore to include .buckconfig.local. * Include a `platforms` configuration for prelude/platforms
- Loading branch information
Adam Singer
committed
Aug 17, 2024
1 parent
433041e
commit 0ad7644
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: build_buck2_nativelink | ||
inputs: | ||
NATIVELINK_HEADER_RW_KEY_SECRET: | ||
description: '' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build `buck2` with `buck2` using remote execution | ||
run: |- | ||
{ | ||
echo "[buck2_re_client] | ||
engine_address = grpc://scheduler-buck2.build-faster.nativelink.net:443 | ||
action_cache_address = grpc://cas-buck2.build-faster.nativelink.net:443 | ||
cas_address = grpc://cas-buck2.build-faster.nativelink.net:443 | ||
http_headers = x-nativelink-api-key:${NATIVELINK_HEADER_RW_KEY} | ||
tls = true | ||
instance_name = main | ||
enabled = true | ||
capabilities = true | ||
[build] | ||
execution_platforms = prelude//platforms:default" | ||
} > .buckconfig.local | ||
$RUNNER_TEMP/artifacts/buck2 build //:buck2 -v 4 | ||
env: | ||
NATIVELINK_HEADER_RW_KEY: ${{ inputs.NATIVELINK_HEADER_RW_KEY_SECRET }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters