Browse Source

github: workflows: Add ccache for mac build

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Lorenz Meier
parent
commit
e86c2348f1
  1. 21
      .github/workflows/buildQGCandDeploy.yml

21
.github/workflows/buildQGCandDeploy.yml

@ -29,6 +29,20 @@ jobs: @@ -29,6 +29,20 @@ jobs:
with:
submodules: recursive
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: ~/.ccache
key: ${{ runner.os }}-mac-ccache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-mac-ccache-${{ github.sha }}
${{ runner.os }}-mac-ccache-
- name: Install ccache
run: |
brew install ccache
- name: install QT via action
uses: jurplel/install-qt-action@v2
with:
@ -51,8 +65,13 @@ jobs: @@ -51,8 +65,13 @@ jobs:
working-directory: ${{ runner.temp }}/shadow_build_dir
run: |
export JOBS=$((`sysctl -n hw.ncpu`+1))
qmake -r ${ACTIONS_BUILD_DIR}/qgroundcontrol.pro CONFIG+=${CONFIG}
export LIBRARY_PATH=/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/
export CCACHE_DIR=~/.ccache
ccache -s
ccache -z
qmake -r ${ACTIONS_BUILD_DIR}/qgroundcontrol.pro CONFIG+=${CONFIG} CONFIG+=ccache
make -j$JOBS
ccache -s
- name: Upload build artifacts to release
uses: svenstaro/upload-release-action@v2

Loading…
Cancel
Save