From a2cb7c653e4542053baa9b9272d795d98e25e683 Mon Sep 17 00:00:00 2001 From: Majd Alfhaily Date: Thu, 8 Dec 2022 00:10:20 +0100 Subject: [PATCH] Set min macOS version to 10.15 when building (#124) --- .github/workflows/dry-build.yml | 6 ++++-- .github/workflows/integration-tests.yml | 2 ++ .github/workflows/release.yml | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dry-build.yml b/.github/workflows/dry-build.yml index 14fc95b8..d0ba8f0e 100644 --- a/.github/workflows/dry-build.yml +++ b/.github/workflows/dry-build.yml @@ -21,7 +21,9 @@ jobs: go-version: '1.19.3' cache: true - run: ./tools/version.sh - - run: go build -o ipatool-${{ matrix.os }} + - run: go build -o ipatool-${{ matrix.os }}-${{ matrix.arch }} env: GOOS: ${{ matrix.os }} - GOARCH: ${{ matrix.arch }} \ No newline at end of file + GOARCH: ${{ matrix.arch }} + CGO_CFLAGS: -mmacosx-version-min=10.15 + CGO_LDFLAGS: -mmacosx-version-min=10.15 \ No newline at end of file diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e6c6eb1e..3a353c19 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -23,6 +23,8 @@ jobs: - run: go build -o ipatool-${{ matrix.os }} env: GOOS: ${{ matrix.os }} + CGO_CFLAGS: -mmacosx-version-min=10.15 + CGO_LDFLAGS: -mmacosx-version-min=10.15 - uses: actions/upload-artifact@v2 with: name: ipatool-${{ matrix.os }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 790f103d..7568c7ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,8 @@ jobs: env: GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }} + CGO_CFLAGS: -mmacosx-version-min=10.15 + CGO_LDFLAGS: -mmacosx-version-min=10.15 - id: output run: echo ::set-output name=file::ipatool-${{ needs.get_version.outputs.version }}-${GOOS//darwin/macos}-$GOARCH env: