Skip to content

Commit d483337

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 c21d1fa commit d483337

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/actions/build_example_nativelink/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ runs:
99
- name: Build examples/remote_execution/nativelink directory using remote execution
1010
run: |-
1111
{
12-
echo "[buck2_re_client]
12+
echo "[buck2]
13+
digest_algorithms = SHA256
14+
execution_platforms = root//platforms:platforms
15+
16+
[buck2_re_client]
1317
engine_address = grpc://scheduler-buck2.build-faster.nativelink.net:443
1418
action_cache_address = grpc://cas-buck2.build-faster.nativelink.net:443
1519
cas_address = grpc://cas-buck2.build-faster.nativelink.net:443

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

+9-6
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ jobs:
6868
cd examples/with_prelude
6969
$RUNNER_TEMP/artifacts/buck2 build //... -v 2
7070
$RUNNER_TEMP/artifacts/buck2 test //... -v 2
71-
- uses: ./.github/actions/build_example_conan
72-
- uses: ./.github/actions/build_example_no_prelude
73-
- uses: ./.github/actions/build_example_persistent_worker
71+
#- uses: ./.github/actions/build_example_conan
72+
#- uses: ./.github/actions/build_example_no_prelude
73+
#- uses: ./.github/actions/build_example_persistent_worker
74+
# with:
75+
# buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY }}
76+
- uses: ./.github/actions/build_example_nativelink
7477
with:
75-
buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY }}
76-
- uses: ./.github/actions/setup_reindeer
77-
- uses: ./.github/actions/build_bootstrap
78+
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }}
79+
#- uses: ./.github/actions/setup_reindeer
80+
#- uses: ./.github/actions/build_bootstrap
7881
windows-build-examples:
7982
runs-on: windows-8-core
8083
steps:

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)