Fix darwin/amd64 and add Windows build tests

This commit is contained in:
Nils Hanke 2022-10-21 14:45:21 +02:00
parent b8d5ad3d4f
commit 24c1879d57

View file

@ -91,7 +91,7 @@ jobs:
uses: ./.github/actions/build_cdbg uses: ./.github/actions/build_cdbg
with: with:
targetOS: "darwin" targetOS: "darwin"
targetArch: "arm64" targetArch: "amd64"
- name: Build cdbg (macOS, arm64) - name: Build cdbg (macOS, arm64)
uses: ./.github/actions/build_cdbg uses: ./.github/actions/build_cdbg
@ -99,6 +99,30 @@ jobs:
targetOS: "darwin" targetOS: "darwin"
targetArch: "arm64" targetArch: "arm64"
build-cdbg-windows:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
with:
ref: ${{ github.head_ref }}
- name: Setup Go environment
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # tag=v3.3.1
with:
go-version: "1.19.2"
- name: Build cdbg (Windows, amd64)
uses: ./.github/actions/build_cdbg
with:
targetOS: "windows"
targetArch: "amd64"
- name: Build cdbg (Windows, arm64)
uses: ./.github/actions/build_cdbg
with:
targetOS: "windows"
targetArch: "arm64"
build-disk-mapper: build-disk-mapper:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -163,3 +187,28 @@ jobs:
with: with:
targetOS: darwin targetOS: darwin
targetArch: arm64 targetArch: arm64
build-cli-windows:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
with:
ref: ${{ github.head_ref }}
- name: Setup Go environment
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # tag=v3.3.1
with:
go-version: "1.19.2"
- name: Build CLI (Windows, amd64)
uses: ./.github/actions/build_cli
with:
targetOS: windows
targetArch: amd64
- name: Build CLI (Windows, arm64)
uses: ./.github/actions/build_cli
with:
targetOS: windows
targetArch: arm64