Skip to content

Commit

Permalink
Set up macOS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta committed Oct 24, 2024
1 parent ecbc659 commit dbf6afa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/guix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ jobs:
${{ runner.os }}-guix-${{ matrix.build_target }}
${{ runner.os }}-guix-
- name: Set up macOS SDK
if: contains(matrix.build_target, 'apple-darwin')
run: |
set -eo pipefail
WORKSPACE_PATH="${{ github.workspace }}/dash"
XCODE_VERSION="12.2"
XCODE_RELEASE="12B45b"
XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers"
if [ ! -d "${WORKSPACE_PATH}/depends/SDKs/${XCODE_ARCHIVE}" ]; then
mkdir -p "${WORKSPACE_PATH}/depends/SDKs"
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${WORKSPACE_PATH}/depends/SDKs"
fi
shell: bash

- name: Configure Git Safe Directory
run: |
git config --global --add safe.directory "${{ github.workspace }}/dash"
git status > /dev/null
- name: Run Guix build
timeout-minutes: 480
working-directory: ./dash
Expand Down

0 comments on commit dbf6afa

Please sign in to comment.