mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 08:54:21 -05:00
0f57f03846
Actions are free for public repos and we want to see every CI failure
165 lines
4.5 KiB
YAML
165 lines
4.5 KiB
YAML
# Build Constellation binaries as quality control
|
|
name: Build Constellation binaries
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
|
|
jobs:
|
|
build-bootstrapper:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
|
|
- name: Build the bootstrapper
|
|
uses: ./.github/actions/build_bootstrapper
|
|
|
|
build-debugd:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
|
|
- name: Build debugd
|
|
uses: ./.github/actions/build_debugd
|
|
|
|
build-cdbg-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
|
|
- 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"
|
|
|
|
build-cdbg-macos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
- name: Build cdbg (macOS, amd64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "darwin"
|
|
targetArch: "arm64"
|
|
|
|
- name: Build cdbg (macOS, arm64)
|
|
uses: ./.github/actions/build_cdbg
|
|
with:
|
|
targetOS: "darwin"
|
|
targetArch: "arm64"
|
|
|
|
build-disk-mapper:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
- name: Build disk-mapper
|
|
uses: ./.github/actions/build_disk_mapper
|
|
|
|
build-cli-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
|
|
- 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
|
|
|
|
build-cli-macos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
|
|
with:
|
|
go-version: "1.19.2"
|
|
|
|
- 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
|