-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
813 changed files
with
23,831 additions
and
5,449 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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,36 +38,17 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare build cache for pull request | ||
uses: pat-s/[email protected] | ||
if: github.event_name == 'pull_request' | ||
- name: Restore build cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: build-mac-ccache-${{ github.actor }}-${{ github.head_ref }}-${{ github.sha }} | ||
# The head_ref or source branch of the pull request in a workflow run. | ||
# The base_ref or target branch of the pull request in a workflow run. | ||
key: build-ccache-mac-${{ github.event.pull_request.base.ref || github.ref_name }} | ||
restore-keys: | | ||
build-mac-ccache-${{ github.actor }}-${{ github.head_ref }}- | ||
build-mac-ccache-refs/heads/${{ github.base_ref }}- | ||
build-mac-ccache-refs/heads/master- | ||
- name: Prepare build cache for branch/tag | ||
# use a fork of actions/cache@v2 to upload cache even when the build or test failed | ||
uses: pat-s/[email protected] | ||
if: github.event_name != 'pull_request' | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
# The branch or tag ref that triggered the workflow run. For branches this in the format refs/heads/<branch_name>, and for tags it is refs/tags/<tag_name> | ||
key: build-mac-ccache-${{ github.ref }}-${{ github.sha }} | ||
restore-keys: | | ||
build-mac-ccache-${{ github.ref }}- | ||
build-mac-ccache-refs/heads/master- | ||
build-ccache-mac-master | ||
# Qt caching | ||
- name: Cache Qt | ||
id: cache-qt | ||
uses: actions/cache@v4.0.0 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DEPS_CACHE_DIR }}/Qt/${{ env.QT_VERSION }} | ||
key: mac-qt-${{ env.QT_VERSION }} | ||
|
@@ -90,7 +71,7 @@ jobs: | |
# QGIS-deps caching | ||
- name: Cache qgis-deps | ||
id: cache-deps | ||
uses: actions/cache@v4.0.0 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DEPS_CACHE_DIR }}/QGIS/qgis-deps-${{ env.QGIS_DEPS_VERSION }}.${{ env.QGIS_DEPS_PATCH_VERSION }} | ||
key: mac-qgis-deps-${{ env.QGIS_DEPS_VERSION }}.${{ env.QGIS_DEPS_PATCH_VERSION }} | ||
|
@@ -109,8 +90,6 @@ jobs: | |
mkdir -p ${DEPS_CACHE_DIR} | ||
mkdir -p ${DEPS_CACHE_DIR}/QGIS | ||
- name: Install Qt and deps | ||
env: | ||
QT_ALREADY_CACHED: ${{ steps.cache-qt.outputs.cache-hit }} | ||
|
@@ -150,3 +129,10 @@ jobs: | |
run: | | ||
cd ${BUILD_DIR} | ||
make -j $(sysctl -n hw.ncpu) | ||
- name: Save build cache for push only | ||
uses: actions/cache/save@v4 | ||
if: ${{ github.event_name == 'push' }} | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: build-ccache-mac-${{ github.ref_name }}-${{ github.run_id }} |
Oops, something went wrong.