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-10-18 16:17:41 +02:00
|
|
|
- "release/**"
|
2022-09-03 17:47:47 +02:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 10:27:49 +02:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 16:01:36 +02:00
|
|
|
pull_request:
|
2022-09-03 17:47:47 +02:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2022-10-14 10:27:49 +02:00
|
|
|
- "**/go.mod"
|
|
|
|
- "**/go.sum"
|
2022-08-03 16:01:36 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-31 12:37:18 +02:00
|
|
|
build-bootstrapper:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-03 16:01:36 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 10:59:46 +02:00
|
|
|
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 15:14:26 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-14 15:14:26 +02:00
|
|
|
|
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:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 12:37:18 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 10:59:46 +02:00
|
|
|
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 15:14:26 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-14 15:14:26 +02:00
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build debugd
|
|
|
|
uses: ./.github/actions/build_debugd
|
2022-08-31 12:37:18 +02:00
|
|
|
|
2022-09-20 13:43:46 +02:00
|
|
|
build-cdbg-linux:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-14 17:41:47 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 10:59:46 +02:00
|
|
|
|
2022-09-14 17:41:47 +02:00
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 17:41:47 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-14 17:41:47 +02:00
|
|
|
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build cdbg (Linux, amd64)
|
2022-09-14 17:41:47 +02:00
|
|
|
uses: ./.github/actions/build_cdbg
|
2022-09-15 14:29:35 +02:00
|
|
|
with:
|
|
|
|
targetOS: "linux"
|
|
|
|
targetArch: "amd64"
|
|
|
|
|
|
|
|
- name: Build cdbg (Linux, arm64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
|
|
|
targetOS: "linux"
|
|
|
|
targetArch: "arm64"
|
|
|
|
|
2022-09-20 13:43:46 +02:00
|
|
|
build-cdbg-macos:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-20 13:43:46 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-20 13:43:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-20 13:43:46 +02:00
|
|
|
|
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-20 13:43:46 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build cdbg (macOS, amd64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
2022-09-20 13:43:46 +02:00
|
|
|
targetOS: "darwin"
|
2022-12-14 16:51:42 +01:00
|
|
|
targetArch: "amd64"
|
2022-09-15 14:29:35 +02:00
|
|
|
|
|
|
|
- name: Build cdbg (macOS, arm64)
|
|
|
|
uses: ./.github/actions/build_cdbg
|
|
|
|
with:
|
2022-09-20 13:43:46 +02:00
|
|
|
targetOS: "darwin"
|
2022-09-15 14:29:35 +02:00
|
|
|
targetArch: "arm64"
|
2022-09-14 17:41:47 +02:00
|
|
|
|
2022-08-31 12:37:18 +02:00
|
|
|
build-disk-mapper:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 12:37:18 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 10:59:46 +02:00
|
|
|
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 15:14:26 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2023-01-18 10:15:58 +01:00
|
|
|
|
2022-08-03 16:01:36 +02:00
|
|
|
- name: Build disk-mapper
|
|
|
|
uses: ./.github/actions/build_disk_mapper
|
|
|
|
|
2022-09-20 13:43:46 +02:00
|
|
|
build-cli-linux:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-31 12:37:18 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-19 10:59:46 +02:00
|
|
|
|
2022-09-14 15:14:26 +02:00
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 15:14:26 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-14 15:14:26 +02:00
|
|
|
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build CLI (Linux, amd64)
|
2022-08-03 16:01:36 +02:00
|
|
|
uses: ./.github/actions/build_cli
|
2022-09-14 15:23:10 +02:00
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: amd64
|
|
|
|
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build CLI (Linux, arm64)
|
2022-09-14 15:23:10 +02:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: linux
|
|
|
|
targetArch: arm64
|
|
|
|
|
2022-09-20 13:43:46 +02:00
|
|
|
build-cli-macos:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-20 13:43:46 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-05 16:17:51 +01:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-09-20 13:43:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-20 13:43:46 +02:00
|
|
|
|
|
|
|
- name: Setup Go environment
|
2022-12-14 14:55:14 +01:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-20 13:43:46 +02:00
|
|
|
with:
|
2023-01-12 13:36:17 +01:00
|
|
|
go-version: "1.19.5"
|
2022-09-20 13:43:46 +02:00
|
|
|
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build CLI (macOS, amd64)
|
2022-09-14 15:23:10 +02:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: amd64
|
|
|
|
|
2022-09-15 14:29:35 +02:00
|
|
|
- name: Build CLI (macOS, arm64)
|
2022-09-14 15:23:10 +02:00
|
|
|
uses: ./.github/actions/build_cli
|
|
|
|
with:
|
|
|
|
targetOS: darwin
|
|
|
|
targetArch: arm64
|