File tree 4 files changed +29
-1
lines changed
actions/build_example_nativelink
examples/remote_execution/nativelink/platforms
4 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
+ {
12
+ 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
16
+ http_headers = x-nativelink-api-key:$NATIVELINK_HEADER_RW_KEY
17
+ tls = true
18
+ instance_name = main"
19
+ } > examples/remote_execution/nativelink/.buckconfig.local
20
+ cd examples/remote_execution/nativelink
21
+ $RUNNER_TEMP/artifacts/buck2 build //...
22
+ env :
23
+ NATIVELINK_HEADER_RW_KEY : ${{ inputs.NATIVELINK_HEADER_RW_KEY_SECRET }}
24
+ 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 2
2
Cargo.lock
3
3
buck-out
4
4
/.direnv
5
+ .buckconfig.local
5
6
6
7
# symlinks
7
8
/examples /with_prelude /prelude
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