forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ci: merge bitcoin#30451, add macOS builds to GitHub Actions, refactor cache keys #6421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1d8868b
merge bitcoin#30451: remove Darwin ENV unsetting
kwvg 2f28f3e
ci: replace `runner.os` with adding CI `Dockerfile` to `hashFiles`
kwvg 9841155
ci: cleanup restore keys
kwvg 56d8a8e
ci: add SDK (extracted) sources to separate SDK cache
kwvg 106500c
ci: add x86_64 macOS cross-compilation build to GitHub Actions
kwvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -51,23 +51,37 @@ jobs: | |
| depends/sources | ||
| key: depends-sources-${{ hashFiles('depends/packages/*') }} | ||
| restore-keys: | | ||
| depends-sources-${{ hashFiles('depends/packages/*') }} | ||
| depends-sources- | ||
|
|
||
| - name: Cache SDKs | ||
| uses: actions/cache@v4 | ||
| if: inputs.build-target == 'mac' | ||
| with: | ||
| path: | | ||
| depends/SDKs | ||
| key: depends-sdks-${{ hashFiles('depends/hosts/darwin.mk') }} | ||
| restore-keys: | | ||
| depends-sdks- | ||
|
|
||
| - name: Restore cached depends | ||
| uses: actions/cache/restore@v4 | ||
| id: restore | ||
| with: | ||
| path: | | ||
| depends/built | ||
| depends/${{ steps.setup.outputs.HOST }} | ||
| key: ${{ runner.os }}-depends-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-${{ hashFiles('depends/packages/*') }} | ||
| key: depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-${{ hashFiles('depends/packages/*') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-depends-${{ inputs.build-target }}-${{ hashFiles('depends/packages/*') }} | ||
| ${{ runner.os }}-depends-${{ inputs.build-target }} | ||
| depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}- | ||
| depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}- | ||
|
|
||
| - name: Build depends | ||
| run: env ${{ steps.setup.outputs.DEP_OPTS }} HOST=${{ steps.setup.outputs.HOST }} make -j$(nproc) -C depends | ||
| run: | | ||
| export HOST="${{ steps.setup.outputs.HOST }}" | ||
| if [ "${HOST}" = "x86_64-apple-darwin" ]; then | ||
| ./contrib/containers/guix/scripts/setup-sdk | ||
| fi | ||
|
Comment on lines
+81
to
+83
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: feels wrong to use guix script in general ci
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| env ${{ steps.setup.outputs.DEP_OPTS }} make -j$(nproc) -C depends | ||
kwvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Save depends cache | ||
| uses: actions/cache/save@v4 | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| build: remove explicit -lm link from qttools | ||
|
|
||
| This causes issues with at least the macOS cross build, and shouldn't | ||
| actually be required anywhere else. GCC with libstdc++ will already get libm. | ||
|
|
||
| --- a/qtbase/src/corelib/tools/tools.pri | ||
| +++ b/qtbase/src/corelib/tools/tools.pri | ||
| @@ -111,9 +111,6 @@ qtConfig(easingcurve) { | ||
| tools/qtimeline.cpp | ||
| } | ||
|
|
||
| -# Note: libm should be present by default becaue this is C++ | ||
| -unix:!macx-icc:!vxworks:!haiku:!integrity:!wasm: LIBS_PRIVATE += -lm | ||
| - | ||
| TR_EXCLUDE += ../3rdparty/* | ||
|
|
||
| # MIPS DSP |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.