constellation/.github/workflows/build-binaries.yml

56 lines
1.5 KiB
YAML
Raw Normal View History

# Build Constellation binaries as quality control
name: Build Constellation binaries
on:
workflow_dispatch:
push:
branches:
- main
- "release/**"
2022-09-03 11:47:47 -04:00
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request:
2022-09-03 11:47:47 -04:00
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
jobs:
2023-05-19 05:02:55 -04:00
build-binaries:
2023-11-03 06:59:19 -04:00
runs-on: [arc-runner-set]
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
- name: Setup bazel
2023-10-04 07:55:38 -04:00
uses: ./.github/actions/setup_bazel_nix
with:
2023-11-03 06:59:19 -04:00
useCache: "rbe"
rbePlatform: "ubuntu-22.04"
2023-05-19 05:02:55 -04:00
- name: Build all
shell: bash
env:
bootstrapper: "//bootstrapper/cmd/bootstrapper:bootstrapper_linux_amd64"
debugd: "//debugd/cmd/debugd:debugd_linux_amd64"
cdbg: "//debugd/cmd/cdbg:all"
disk_mapper: "//disk-mapper/cmd:disk-mapper_linux_amd64"
measurement_reader: "//measurement-reader/cmd:measurement-reader_linux_amd64"
cli: "//cli:all"
terraform_provider: "//terraform-provider-constellation:all"
2023-05-19 05:02:55 -04:00
run: |
bazel build \
2023-11-03 06:59:19 -04:00
--remote_download_minimal \
2023-05-19 05:02:55 -04:00
"${bootstrapper}" \
"${debugd}" \
"${cdbg}" \
"${disk_mapper}" \
"${measurement_reader}" \
"${cli}" \
"${terraform_provider}"