Skip to content

Commit

Permalink
Merge #94: cmake, ci: Add macOS cross compile jobs
Browse files Browse the repository at this point in the history
c9ea5b8 fixup! ci: Test CMake edge cases (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  pablomartin4btc:
    reACK c9ea5b8

Tree-SHA512: 0419c316ba011bd3f334f1f3c68a6fb38d92a405a53914b9b2476cbd2c7684e6d7be28196e9c9f87158de8cb5e32e5ded9a9829ebe7d319a9d186fc3f61868c4
  • Loading branch information
hebasto committed Mar 26, 2024
2 parents 8078427 + c9ea5b8 commit 138cd2e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ jobs:
exe_extension: '.exe'
# Avoid "No space left on device" error.
skip_install: 'true'
- name: 'macOS x86_64'
triplet: 'x86_64-apple-darwin'
macos_sdk: 'Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers'
configure_options: '-DWERROR=ON'
- name: 'macOS arm64'
triplet: 'arm64-apple-darwin'
macos_sdk: 'Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers'
configure_options: '-DWERROR=ON'

steps:
- name: Checkout
Expand All @@ -315,10 +323,22 @@ jobs:
echo ${{ matrix.host.depends_options }} > depends/depends_options
- name: Depends fingerprint (4)
if: ${{ matrix.host.triplet == 'x86_64-apple-darwin' || matrix.host.triplet == 'arm64-apple-darwin' }}
run: |
echo ${{ matrix.host.macos_sdk }} > depends/macos_sdk
- name: Depends fingerprint (5)
id: depends_fingerprint
run: |
echo "hash=${{ hashFiles('depends/**') }}" >> "$GITHUB_OUTPUT"
- name: Download macOS SDK
if: ${{ matrix.host.triplet == 'x86_64-apple-darwin' || matrix.host.triplet == 'arm64-apple-darwin' }}
run: |
wget --no-verbose https://bitcoincore.org/depends-sources/sdks/${{ matrix.host.macos_sdk }}.tar.gz
mkdir depends/SDKs
tar -xf ${{ matrix.host.macos_sdk }}.tar.gz --directory depends/SDKs
- name: Depends cache
id: depends_cache
uses: actions/cache@v4
Expand Down

0 comments on commit 138cd2e

Please sign in to comment.