mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-15 09:27:19 -05:00
132 lines
3.4 KiB
YAML
132 lines
3.4 KiB
YAML
# Build Constellation binaries as quality control
|
|
name: Build Constellation binaries
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**.go"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
|
|
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
build-bootstrapper:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: "1.19.1"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build the bootstrapper
|
|
uses: ./.github/actions/build_bootstrapper
|
|
|
|
build-debugd:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: "1.19.1"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build debugd
|
|
uses: ./.github/actions/build_debugd
|
|
|
|
build-cdbg:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: "1.19.1"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build cdbg (Linux, amd64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "linux"
|
|
targetArch: "amd64"
|
|
|
|
- name: Build cdbg (Linux, arm64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "linux"
|
|
targetArch: "arm64"
|
|
|
|
- name: Build cdbg (macOS, amd64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "linux"
|
|
targetArch: "arm64"
|
|
|
|
- name: Build cdbg (macOS, arm64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "linux"
|
|
targetArch: "arm64"
|
|
|
|
build-disk-mapper:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: "1.19.1"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build disk-mapper
|
|
uses: ./.github/actions/build_disk_mapper
|
|
|
|
build-cli:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: "1.19.1"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build CLI (Linux, amd64)
|
|
uses: ./.github/actions/build_cli
|
|
with:
|
|
targetOS: linux
|
|
targetArch: amd64
|
|
|
|
- name: Build CLI (Linux, arm64)
|
|
uses: ./.github/actions/build_cli
|
|
with:
|
|
targetOS: linux
|
|
targetArch: arm64
|
|
|
|
- name: Build CLI (macOS, amd64)
|
|
uses: ./.github/actions/build_cli
|
|
with:
|
|
targetOS: darwin
|
|
targetArch: amd64
|
|
|
|
- name: Build CLI (macOS, arm64)
|
|
uses: ./.github/actions/build_cli
|
|
with:
|
|
targetOS: darwin
|
|
targetArch: arm64
|