mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
ci: Check out externals repository
This commit is contained in:
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
@@ -20,6 +20,9 @@ env:
|
|||||||
qt_version: 5.15.2
|
qt_version: 5.15.2
|
||||||
bitrock_version: qt-professional-23.11.0
|
bitrock_version: qt-professional-23.11.0
|
||||||
bitrock_url: https://releases.installbuilder.com/installbuilder
|
bitrock_url: https://releases.installbuilder.com/installbuilder
|
||||||
|
externals: swift-project/externals
|
||||||
|
externals_sha: 53e671fc3ba76f2036b9130314507776d161c6e0
|
||||||
|
use_externals: ${{ secrets.EXTERNALS_PAT != '' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -56,8 +59,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Run clang-format
|
- name: Run clang-format
|
||||||
run: |
|
run: |
|
||||||
scripts/run_clang_format.py
|
scripts/run_clang_format.py
|
||||||
@@ -65,7 +66,7 @@ jobs:
|
|||||||
- name: Run cppcheck
|
- name: Run cppcheck
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install cppcheck
|
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 \
|
-i src/plugins/weatherdata/gfs/g2clib -DCPPCHECK --force --suppressions-list=cppcheck.supp \
|
||||||
--library=qt.cfg --library=posix.cfg .
|
--library=qt.cfg --library=posix.cfg .
|
||||||
- name: Run doxygen
|
- name: Run doxygen
|
||||||
@@ -122,6 +123,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Checkout externals
|
||||||
|
if: ${{ env.use_externals == 'true' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
env:
|
||||||
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
|
with:
|
||||||
|
repository: ${{ env.externals }}
|
||||||
|
ref: ${{ env.externals_sha }}
|
||||||
|
token: ${{ env.EXTERNALS_PAT }}
|
||||||
|
path: 'third_party/externals'
|
||||||
- name: Start DBus session bus
|
- name: Start DBus session bus
|
||||||
run: |
|
run: |
|
||||||
dbus-launch --sh-syntax | tee session.sh
|
dbus-launch --sh-syntax | tee session.sh
|
||||||
@@ -215,6 +226,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Checkout externals
|
||||||
|
if: ${{ env.use_externals == 'true' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
env:
|
||||||
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
|
with:
|
||||||
|
repository: ${{ env.externals }}
|
||||||
|
ref: ${{ env.externals_sha }}
|
||||||
|
token: ${{ env.EXTERNALS_PAT }}
|
||||||
|
path: 'third_party/externals'
|
||||||
- name: Create Vatsim key file
|
- name: Create Vatsim key file
|
||||||
if: ${{ env.do_vatsim_key == 'true' }}
|
if: ${{ env.do_vatsim_key == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
@@ -303,6 +324,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Checkout externals
|
||||||
|
if: ${{ env.use_externals == 'true' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
env:
|
||||||
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
|
with:
|
||||||
|
repository: ${{ env.externals }}
|
||||||
|
ref: ${{ env.externals_sha }}
|
||||||
|
token: ${{ env.EXTERNALS_PAT }}
|
||||||
|
path: 'third_party/externals'
|
||||||
- name: Create Vatsim key file
|
- name: Create Vatsim key file
|
||||||
if: ${{ env.do_vatsim_key == 'true' }}
|
if: ${{ env.do_vatsim_key == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
@@ -381,6 +412,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Checkout externals
|
||||||
|
if: ${{ env.use_externals == 'true' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
env:
|
||||||
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
|
with:
|
||||||
|
repository: ${{ env.externals }}
|
||||||
|
ref: ${{ env.externals_sha }}
|
||||||
|
token: ${{ env.EXTERNALS_PAT }}
|
||||||
|
path: 'third_party/externals'
|
||||||
- name: Create Vatsim key file
|
- name: Create Vatsim key file
|
||||||
if: ${{ env.do_vatsim_key == 'true' }}
|
if: ${{ env.do_vatsim_key == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user