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-10-18 10:17:41 -04:00
|
|
|
- "release/**"
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 04:27:49 -04:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 10:01:36 -04:00
|
|
|
pull_request:
|
2022-09-03 11:47:47 -04:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 04:27:49 -04:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 10:01:36 -04:00
|
|
|
|
|
|
|
jobs:
|
2022-08-31 06:37:18 -04:00
|
|
|
build-bootstrapper:
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-03 10:01:36 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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:
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 06:37:18 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-14 11:41:47 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2022-09-14 11:41:47 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 11:41:47 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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:
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-20 07:43:46 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-20 07:43:46 -04:00
|
|
|
|
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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-12-14 10:51:42 -05:00
|
|
|
targetArch: "amd64"
|
2022-09-15 08:29:35 -04:00
|
|
|
|
|
|
|
- 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:
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 06:37:18 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 06:37:18 -04:00
|
|
|
steps:
|
2022-09-19 04:59:46 -04:00
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 04:59:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 04:59:46 -04:00
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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:
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-20 07:43:46 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-20 07:43:46 -04:00
|
|
|
|
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-20 07:43:46 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
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
|