2022-08-03 16:01:36 +02:00
|
|
|
# Build Constellation binaries as quality control
|
|
|
|
name: Build Constellation binaries
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-09-03 17:47:47 +02:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-08-03 16:01:36 +02:00
|
|
|
pull_request:
|
2022-09-03 17:47:47 +02:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-08-03 16:01:36 +02:00
|
|
|
|
|
|
|
# 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:
|
2022-08-31 12:37:18 +02:00
|
|
|
build-bootstrapper:
|
2022-08-03 16:01:36 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
|
|
|
go-version: "1.19.1"
|
|
|
|
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build the bootstrapper
|
|
|
|
uses: ./.github/actions/build_bootstrapper
|
2022-08-31 12:37:18 +02:00
|
|
|
|
|
|
|
build-debugd:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
|
|
|
go-version: "1.19.1"
|
|
|
|
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build debugd
|
|
|
|
uses: ./.github/actions/build_debugd
|
2022-08-31 12:37:18 +02:00
|
|
|
|
|
|
|
build-disk-mapper:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
|
|
|
go-version: "1.19.1"
|
|
|
|
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build disk-mapper
|
|
|
|
uses: ./.github/actions/build_disk_mapper
|
|
|
|
|
2022-09-14 15:23:10 +02:00
|
|
|
build-cli-linux-amd64:
|
2022-08-31 12:37:18 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
|
|
|
go-version: "1.19.1"
|
|
|
|
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build CLI
|
|
|
|
uses: ./.github/actions/build_cli
|
2022-09-14 15:23:10 +02:00
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: amd64
|
|
|
|
|
|
|
|
build-cli-linux-arm64:
|
|
|
|
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
|
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: arm64
|
|
|
|
|
|
|
|
build-cli-darwin-amd64:
|
|
|
|
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
|
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: amd64
|
|
|
|
|
|
|
|
build-cli-darwin-arm64:
|
|
|
|
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
|
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: arm64
|