mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
80917921e3
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
# Build Constellation binaries as quality control
|
|
name: Build Constellation binaries
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release/**"
|
|
paths:
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
|
|
jobs:
|
|
build-binaries:
|
|
runs-on: [arc-runner-set]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
with:
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
|
|
|
- name: Setup bazel
|
|
uses: ./.github/actions/setup_bazel_nix
|
|
with:
|
|
useCache: "rbe"
|
|
rbePlatform: "ubuntu-22.04"
|
|
|
|
- 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"
|
|
|
|
run: |
|
|
bazel build \
|
|
--remote_download_minimal \
|
|
"${bootstrapper}" \
|
|
"${debugd}" \
|
|
"${cdbg}" \
|
|
"${disk_mapper}" \
|
|
"${measurement_reader}" \
|
|
"${cli}" \
|
|
"${terraform_provider}"
|