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-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-08-03 10:01:36 -04:00
|
|
|
pull_request:
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-08-03 10:01:36 -04: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 06:37:18 -04:00
|
|
|
build-bootstrapper:
|
2022-08-03 10:01:36 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-14 09:14:26 -04:00
|
|
|
|
2022-08-03 10:01:36 -04:00
|
|
|
- name: Build the bootstrapper
|
|
|
|
uses: ./.github/actions/build_bootstrapper
|
2022-08-31 06:37:18 -04:00
|
|
|
|
|
|
|
build-debugd:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-14 09:14:26 -04:00
|
|
|
|
2022-08-03 10:01:36 -04:00
|
|
|
- name: Build debugd
|
|
|
|
uses: ./.github/actions/build_debugd
|
2022-08-31 06:37:18 -04:00
|
|
|
|
2022-09-20 07:43:46 -04:00
|
|
|
build-cdbg-linux:
|
2022-09-14 11:41:47 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-09-14 11:41:47 -04:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-14 11:41:47 -04:00
|
|
|
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build cdbg (Linux, amd64)
|
2022-09-14 11:41:47 -04:00
|
|
|
uses: ./.github/actions/build_cdbg
|
2022-09-15 08:29:35 -04:00
|
|
|
with:
|
|
|
|
targetOS: "linux"
|
|
|
|
targetArch: "amd64"
|
|
|
|
|
|
|
|
- name: Build cdbg (Linux, arm64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
|
|
|
targetOS: "linux"
|
|
|
|
targetArch: "arm64"
|
|
|
|
|
2022-09-20 07:43:46 -04:00
|
|
|
build-cdbg-macos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build cdbg (macOS, amd64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
2022-09-20 07:43:46 -04:00
|
|
|
targetOS: "darwin"
|
2022-09-15 08:29:35 -04:00
|
|
|
targetArch: "arm64"
|
|
|
|
|
|
|
|
- name: Build cdbg (macOS, arm64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
2022-09-20 07:43:46 -04:00
|
|
|
targetOS: "darwin"
|
2022-09-15 08:29:35 -04:00
|
|
|
targetArch: "arm64"
|
2022-09-14 11:41:47 -04:00
|
|
|
|
2022-08-31 06:37:18 -04:00
|
|
|
build-disk-mapper:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-08-03 10:01:36 -04:00
|
|
|
- name: Build disk-mapper
|
|
|
|
uses: ./.github/actions/build_disk_mapper
|
|
|
|
|
2022-09-20 07:43:46 -04:00
|
|
|
build-cli-linux:
|
2022-08-31 06:37:18 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-14 09:14:26 -04:00
|
|
|
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build CLI (Linux, amd64)
|
2022-08-03 10:01:36 -04:00
|
|
|
uses: ./.github/actions/build_cli
|
2022-09-14 09:23:10 -04:00
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: amd64
|
|
|
|
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build CLI (Linux, arm64)
|
2022-09-14 09:23:10 -04:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: arm64
|
|
|
|
|
2022-09-20 07:43:46 -04:00
|
|
|
build-cli-macos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-10-05 03:24:36 -04:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
|
|
with:
|
2022-10-06 13:31:12 -04:00
|
|
|
go-version: "1.19.2"
|
2022-09-20 07:43:46 -04:00
|
|
|
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build CLI (macOS, amd64)
|
2022-09-14 09:23:10 -04:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: amd64
|
|
|
|
|
2022-09-15 08:29:35 -04:00
|
|
|
- name: Build CLI (macOS, arm64)
|
2022-09-14 09:23:10 -04:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: arm64
|