2022-08-03 10:01:36 -04:00
|
|
|
# Build Constellation binaries as quality control
|
|
|
|
name: Build Constellation binaries
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-10-18 10:17:41 -04:00
|
|
|
- "release/**"
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 04:27:49 -04:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 10:01:36 -04:00
|
|
|
pull_request:
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 04:27:49 -04:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 10:01:36 -04:00
|
|
|
|
|
|
|
jobs:
|
2023-05-19 05:02:55 -04:00
|
|
|
build-binaries:
|
|
|
|
runs-on: [self-hosted, bazel-cached]
|
2022-08-03 10:01:36 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-07-03 02:19:10 -04:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2023-03-20 11:05:08 -04:00
|
|
|
- name: Setup bazel
|
|
|
|
uses: ./.github/actions/setup_bazel
|
|
|
|
with:
|
|
|
|
useCache: "true"
|
|
|
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
|
|
|
|
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"
|
2022-08-31 06:37:18 -04:00
|
|
|
|
2023-05-19 05:02:55 -04:00
|
|
|
run: |
|
|
|
|
bazel build \
|
|
|
|
"${bootstrapper}" \
|
|
|
|
"${debugd}" \
|
|
|
|
"${cdbg}" \
|
|
|
|
"${disk_mapper}" \
|
|
|
|
"${measurement_reader}" \
|
|
|
|
"${cli}"
|