Skip to content

Commit

Permalink
ci: Check out externals repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed May 28, 2024
1 parent e2b9bd2 commit 124472b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
qt_version: 5.15.2
bitrock_version: qt-professional-23.11.0
bitrock_url: https://releases.installbuilder.com/installbuilder
externals: swift-project/externals
externals_sha: 53e671fc3ba76f2036b9130314507776d161c6e0
use_externals: ${{ secrets.EXTERNALS_DEPLOY_KEY != '' }}

jobs:

Expand Down Expand Up @@ -56,16 +59,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run clang-format
run: |
scripts/run_clang_format.py
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
- name: Run cppcheck
run: |
sudo apt-get -y install cppcheck
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction \
-i src/plugins/weatherdata/gfs/g2clib -DCPPCHECK --force --suppressions-list=cppcheck.supp \
--library=qt.cfg --library=posix.cfg .
- name: Run doxygen
Expand Down Expand Up @@ -120,8 +121,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Checkout externals
if: ${{ env.use_externals == 'true' }}
uses: actions/checkout@v4
env:
EXTERNALS_DEPLOY_KEY: ${{ secrets.EXTERNALS_DEPLOY_KEY }}
with:
repository: ${{ env.externals }}
ref: ${{ env.externals_sha }}
ssh-key: ${{ env.EXTERNALS_DEPLOY_KEY }}
path: 'third_party/externals'
- name: Start DBus session bus
run: |
dbus-launch --sh-syntax | tee session.sh
Expand Down

0 comments on commit 124472b

Please sign in to comment.