-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests and add cache for OSX deps
- Loading branch information
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,18 +38,34 @@ jobs: | |
if: ${{ env.TARGET == 'x86_64-w64-mingw32' }} | ||
run: sudo apt-get install g++-mingw-w64-x86-64-posix | ||
|
||
- name: Install OSX dependencies | ||
- name: Restore OSX deps cache | ||
id: osx-deps-cache-restore | ||
if: ${{ env.TARGET == 'x86_64-apple-darwin' }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{github.workspace}}/depends/SDKs | ||
key: ${{ env.TRAGET }}-osx-deps | ||
|
||
- name: Install OSX dependencies | ||
if: ${{ env.TARGET == 'x86_64-apple-darwin' && steps.osx-deps-cache-restore.cache-hit != 'true'}} | ||
run: | | ||
sudo apt-get install curl bsdmainutils cmake libz-dev python3-setuptools libtinfo5 xorriso cpio | ||
cd depends && mkdir SDKs && cd SDKs | ||
wget https://archive.org/download/xcode-12.2/Xcode_12.2.xip | ||
wget https://download.developer.apple.com/Developer_Tools/Xcode_12.2/Xcode_12.2.xip | ||
git clone https://github.com/bitcoin-core/apple-sdk-tools.git | ||
python3 apple-sdk-tools/extract_xcode.py -f Xcode_12.2.xip | cpio -d -i | ||
../../contrib/macdeploy/gen-sdk './Xcode.app' | ||
tar -xzf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz | ||
rm -rf Xcode_12.2.xip | ||
rm -rf Xcode_12.2.xip Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz Xcode.app | ||
- name: Save OSX deps cache | ||
id: osx-deps-cache-save | ||
if: ${{ env.TARGET == 'x86_64-apple-darwin' && steps.osx-deps-cache-restore.cache-hit != 'true'}} | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: ${{github.workspace}}/depends/SDKs | ||
key: ${{ env.TRAGET }}-osx-deps | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters