Build and test nativelink #1353
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test nativelink | |
on: | |
push: | |
workflow_dispatch: | |
workflow_call: | |
workflow_run: | |
workflows: ["rebase upstream manual", "rebase upstream cron"] | |
types: | |
- completed | |
jobs: | |
linux-build-examples: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- uses: ./.github/actions/setup_linux_env | |
- uses: ./.github/actions/init_opam | |
- uses: ./.github/actions/build_debug | |
- uses: ./.github/actions/build_example_nativelink | |
with: | |
NATIVELINK_ENGINE_ADDRESS_SECRET: ${{ secrets.NATIVELINK_ENGINE_ADDRESS_SECRET }} | |
NATIVELINK_AC_ADDRESS_SECRET: ${{ secrets.NATIVELINK_AC_ADDRESS_SECRET }} | |
NATIVELINK_CAS_ADDRESS_SECRET: ${{ secrets.NATIVELINK_CAS_ADDRESS_SECRET }} | |
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }} | |
- uses: ./.github/actions/build_example_no_prelude | |
with: | |
NATIVELINK_ENGINE_ADDRESS_SECRET: ${{ secrets.NATIVELINK_ENGINE_ADDRESS_SECRET }} | |
NATIVELINK_AC_ADDRESS_SECRET: ${{ secrets.NATIVELINK_AC_ADDRESS_SECRET }} | |
NATIVELINK_CAS_ADDRESS_SECRET: ${{ secrets.NATIVELINK_CAS_ADDRESS_SECRET }} | |
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }} | |
- uses: ./.github/actions/setup_reindeer | |
#- uses: ./.github/actions/build_bootstrap | |
- uses: DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563 | |
name: Install Nix | |
- uses: endersonmenezes/free-disk-space@3f9ec39ebae520864ac93467ee395f5237585c21 | |
name: Free disk space | |
with: | |
remove_android: true | |
remove_dotnet: true | |
remove_haskell: true | |
remove_tool_cache: false | |
- uses: DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41 | |
name: Cache Nix derivations | |
# Required due to the mismatch of protoc and nix prebuild bins | |
# - name: Install Protoc | |
# uses: arduino/setup-protoc@v3 | |
# with: | |
# version: "21.4" | |
- uses: ./.github/actions/build_buck2_nativelink | |
with: | |
NATIVELINK_ENGINE_ADDRESS_SECRET: ${{ secrets.NATIVELINK_ENGINE_ADDRESS_SECRET }} | |
NATIVELINK_AC_ADDRESS_SECRET: ${{ secrets.NATIVELINK_AC_ADDRESS_SECRET }} | |
NATIVELINK_CAS_ADDRESS_SECRET: ${{ secrets.NATIVELINK_CAS_ADDRESS_SECRET }} | |
NATIVELINK_HEADER_RW_KEY_SECRET: ${{ secrets.NATIVELINK_HEADER_RW_KEY_SECRET }} | |
# - name: what-ran | |
# run: |- | |
# $RUNNER_TEMP/artifacts/buck2 log what-ran --format json | jq . | |
# shell: bash |