Run macos builds as separate jobs (#174)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-09-20 13:43:46 +02:00 committed by GitHub
parent 788cfd9bd9
commit 95873d6a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ jobs:
- name: Build debugd - name: Build debugd
uses: ./.github/actions/build_debugd uses: ./.github/actions/build_debugd
build-cdbg: build-cdbg-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -75,16 +75,28 @@ jobs:
targetOS: "linux" targetOS: "linux"
targetArch: "arm64" targetArch: "arm64"
build-cdbg-macos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Go environment
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: "1.19.1"
- name: Build cdbg (macOS, amd64) - name: Build cdbg (macOS, amd64)
uses: ./.github/actions/build_cdbg uses: ./.github/actions/build_cdbg
with: with:
targetOS: "linux" targetOS: "darwin"
targetArch: "arm64" targetArch: "arm64"
- name: Build cdbg (macOS, arm64) - name: Build cdbg (macOS, arm64)
uses: ./.github/actions/build_cdbg uses: ./.github/actions/build_cdbg
with: with:
targetOS: "linux" targetOS: "darwin"
targetArch: "arm64" targetArch: "arm64"
build-disk-mapper: build-disk-mapper:
@ -102,7 +114,7 @@ jobs:
- name: Build disk-mapper - name: Build disk-mapper
uses: ./.github/actions/build_disk_mapper uses: ./.github/actions/build_disk_mapper
build-cli: build-cli-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -127,6 +139,19 @@ jobs:
targetOS: linux targetOS: linux
targetArch: arm64 targetArch: arm64
build-cli-macos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Go environment
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: "1.19.1"
- name: Build CLI (macOS, amd64) - name: Build CLI (macOS, amd64)
uses: ./.github/actions/build_cli uses: ./.github/actions/build_cli
with: with: