mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
CI: Consolidate multi-OS & multi-arch builds into one job
This commit is contained in:
parent
1dad1631ca
commit
52d1afaf0b
12
.github/actions/build_cdbg/action.yml
vendored
12
.github/actions/build_cdbg/action.yml
vendored
@ -1,6 +1,16 @@
|
||||
name: Build cdbg
|
||||
description: Build the Constellation cdbg binary
|
||||
|
||||
inputs:
|
||||
targetOS:
|
||||
description: "Build CLI for this OS. [linux, darwin]"
|
||||
required: true
|
||||
default: "linux"
|
||||
targetArch:
|
||||
description: "Build CLI for this architecture. [amd64, arm64]"
|
||||
required: true
|
||||
default: "amd64"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@ -10,5 +20,5 @@ runs:
|
||||
echo "::group::Build cdbg"
|
||||
mkdir -p build && cd build
|
||||
cmake ..
|
||||
make cdbg
|
||||
GOOS=${{ inputs.targetOS }} GOARCH=${{ inputs.targetArch }} make cdbg
|
||||
echo "::endgroup::"
|
||||
|
66
.github/workflows/build-binaries.yml
vendored
66
.github/workflows/build-binaries.yml
vendored
@ -57,8 +57,29 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||
|
||||
- name: Build cdbg
|
||||
- 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"
|
||||
|
||||
- name: Build cdbg (macOS, amd64)
|
||||
uses: ./.github/actions/build_cdbg
|
||||
with:
|
||||
targetOS: "linux"
|
||||
targetArch: "arm64"
|
||||
|
||||
- name: Build cdbg (macOS, arm64)
|
||||
uses: ./.github/actions/build_cdbg
|
||||
with:
|
||||
targetOS: "linux"
|
||||
targetArch: "arm64"
|
||||
|
||||
build-disk-mapper:
|
||||
runs-on: ubuntu-latest
|
||||
@ -74,7 +95,7 @@ jobs:
|
||||
- name: Build disk-mapper
|
||||
uses: ./.github/actions/build_disk_mapper
|
||||
|
||||
build-cli-linux-amd64:
|
||||
build-cli:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Go environment
|
||||
@ -85,58 +106,25 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||
|
||||
- name: Build CLI
|
||||
- name: Build CLI (Linux, amd64)
|
||||
uses: ./.github/actions/build_cli
|
||||
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
|
||||
- name: Build CLI (Linux, arm64)
|
||||
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
|
||||
- name: Build CLI (macOS, amd64)
|
||||
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
|
||||
- name: Build CLI (macOS, arm64)
|
||||
uses: ./.github/actions/build_cli
|
||||
with:
|
||||
targetOS: darwin
|
||||
|
Loading…
Reference in New Issue
Block a user