-
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.
Add nativelink remote execution to github actions
* 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.
- Loading branch information
Adam Singer
committed
Aug 24, 2024
1 parent
749c7ea
commit d472d2f
Showing
4 changed files
with
29 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,24 @@ | ||
name: build_example_nativelink | ||
inputs: | ||
NATIVELINK_HEADER_RW_KEY_SECRET: | ||
description: '' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build examples/remote_execution/nativelink directory 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" | ||
} > examples/remote_execution/nativelink/.buckconfig.local | ||
cd examples/remote_execution/nativelink | ||
$RUNNER_TEMP/artifacts/buck2 build //... | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
Cargo.lock | ||
buck-out | ||
/.direnv | ||
.buckconfig.local | ||
|
||
# symlinks | ||
/examples/with_prelude/prelude | ||
|
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