Skip to content

add nativelink example to github actions #930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/actions/build_example_nativelink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ runs:
- name: Build examples/remote_execution/nativelink directory using remote execution
run: |-
{
echo "[buck2_re_client]
echo "[buck2]
digest_algorithms = SHA256
execution_platforms = root//platforms:platforms

[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
Expand All @@ -18,7 +22,11 @@ runs:
instance_name = main"
} > examples/remote_execution/nativelink/.buckconfig.local
cd examples/remote_execution/nativelink
$RUNNER_TEMP/artifacts/buck2 build //...
if [[ -z ${NATIVELINK_HEADER_RW_KEY:+x} ]]; then
echo "Missing NativeLink Api key." >&2
else
$RUNNER_TEMP/artifacts/buck2 build //...
fi
env:
NATIVELINK_HEADER_RW_KEY: ${{ inputs.NATIVELINK_HEADER_RW_KEY_SECRET }}
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
- uses: ./.github/actions/build_example_persistent_worker
with:
buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY }}
- uses: ./.github/actions/build_example_nativelink
with:
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }}
- uses: ./.github/actions/setup_reindeer
- uses: ./.github/actions/build_bootstrap
windows-build-examples:
Expand Down
2 changes: 1 addition & 1 deletion examples/remote_execution/nativelink/platforms/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _platforms(ctx):
# Set those up based on what workers you've registered with NativeLink.
remote_execution_properties = {
"OSFamily": "linux",
"container-image": "docker://buck2-github:latest",
"container-image": "docker://nativelink-toolchain-buck2:latest",
},
remote_execution_use_case = "buck2-default",
remote_output_paths = "output_paths",
Expand Down
Loading