Skip to content

Commit 4c3a8b4

Browse files
Yury Samkevichfacebook-github-bot
Yury Samkevich
authored andcommitted
add nativelink example to github actions (facebook#930)
Summary: Pull Request resolved: facebook#930 Differential Revision: D74001305
1 parent 595866a commit 4c3a8b4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/actions/build_example_nativelink/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ runs:
1010
run: |-
1111
{
1212
echo "[buck2_re_client]
13-
engine_address = grpc://scheduler-buck2.build-faster.nativelink.net:443
14-
action_cache_address = grpc://cas-buck2.build-faster.nativelink.net:443
15-
cas_address = grpc://cas-buck2.build-faster.nativelink.net:443
13+
engine_address = grpcs://scheduler-buck2.build-faster.nativelink.net:443
14+
action_cache_address = grpcs://cas-buck2.build-faster.nativelink.net:443
15+
cas_address = grpcs://cas-buck2.build-faster.nativelink.net:443
1616
http_headers = x-nativelink-api-key:$NATIVELINK_HEADER_RW_KEY
1717
tls = true
1818
instance_name = main"

.github/workflows/build-and-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
- uses: ./.github/actions/build_example_persistent_worker
7474
with:
7575
buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY }}
76+
- uses: ./.github/actions/build_example_nativelink
77+
with:
78+
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }}
7679
- uses: ./.github/actions/setup_reindeer
7780
- uses: ./.github/actions/build_bootstrap
7881
windows-build-examples:

examples/remote_execution/nativelink/platforms/defs.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _platforms(ctx):
2121
# Set those up based on what workers you've registered with NativeLink.
2222
remote_execution_properties = {
2323
"OSFamily": "linux",
24-
"container-image": "docker://buck2-github:latest",
24+
"container-image": "docker://nativelink-toolchain-buck2:latest",
2525
},
2626
remote_execution_use_case = "buck2-default",
2727
remote_output_paths = "output_paths",

0 commit comments

Comments
 (0)