File tree 3 files changed +29
-1
lines changed
actions/build_example_nativelink
examples/remote_execution/nativelink/platforms
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : build_example_nativelink
2
+ inputs :
3
+ NATIVELINK_HEADER_RW_KEY_SECRET :
4
+ description : ' '
5
+ required : true
6
+ runs :
7
+ using : composite
8
+ steps :
9
+ - name : Build examples/remote_execution/nativelink directory using remote execution
10
+ run : |-
11
+ cat <<EOL > examples/remote_execution/nativelink/.buckconfig.local
12
+ [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
16
+ http_headers = x-nativelink-api-key:${NATIVELINK_HEADER_RW_KEY}
17
+ tls = true
18
+ instance_name = main
19
+ EOL
20
+
21
+ cd examples/remote_execution/nativelink
22
+ $RUNNER_TEMP/artifacts/buck2 build //... -v 4
23
+ env :
24
+ NATIVELINK_HEADER_RW_KEY : ${{ inputs.NATIVELINK_HEADER_RW_KEY_SECRET }}
25
+ shell : bash
Original file line number Diff line number Diff line change 69
69
$RUNNER_TEMP/artifacts/buck2 test //... -v 2
70
70
- uses : ./.github/actions/build_example_conan
71
71
- uses : ./.github/actions/build_example_no_prelude
72
+ - uses : ./.github/actions/build_example_nativelink
73
+ with :
74
+ NATIVELINK_HEADER_RW_KEY_SECRET : ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }}
72
75
- uses : ./.github/actions/setup_reindeer
73
76
- uses : ./.github/actions/build_bootstrap
74
77
windows-build-examples :
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def _platforms(ctx):
21
21
# Set those up based on what workers you've registered with NativeLink.
22
22
remote_execution_properties = {
23
23
"OSFamily" : "linux" ,
24
- "container-image" : "docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448 " ,
24
+ "container-image" : "docker://buck2-github:latest " ,
25
25
},
26
26
remote_execution_use_case = "buck2-default" ,
27
27
remote_output_paths = "output_paths" ,
You can’t perform that action at this time.
0 commit comments