mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-13 04:55:44 +08:00
ci: Update actions
This commit is contained in:
60
.github/workflows/build.yml
vendored
60
.github/workflows/build.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get version number
|
- name: Get version number
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
- name: Install gitlint
|
- name: Install gitlint
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
- name: Run clang-format
|
- name: Run clang-format
|
||||||
run: |
|
run: |
|
||||||
scripts/run_clang_format.py
|
scripts/run_clang_format.py
|
||||||
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
|
- uses: swift-project/setup-cpp@swift
|
||||||
- name: Run cppcheck
|
- name: Run cppcheck
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install cppcheck
|
sudo apt-get -y install cppcheck
|
||||||
@@ -118,7 +118,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ steps.check_need_clang_tidy.outputs.should_run_clang_tidy == 'true' }}
|
if: ${{ steps.check_need_clang_tidy.outputs.should_run_clang_tidy == 'true' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
pip3 install requests conan
|
pip3 install requests conan
|
||||||
- name: Checkout externals
|
- name: Checkout externals
|
||||||
if: ${{ env.use_externals == 'true' && steps.check_need_clang_tidy.outputs.should_run_clang_tidy == 'true' }}
|
if: ${{ env.use_externals == 'true' && steps.check_need_clang_tidy.outputs.should_run_clang_tidy == 'true' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
env:
|
env:
|
||||||
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
with:
|
with:
|
||||||
@@ -182,7 +182,7 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
- name: Cache InstallBuilder
|
- name: Cache InstallBuilder
|
||||||
id: cache-bitrock
|
id: cache-bitrock
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/installbuilder.run
|
path: ~/installbuilder.run
|
||||||
key: installbuilder-${{ env.bitrock_version }}-linux-x64
|
key: installbuilder-${{ env.bitrock_version }}-linux-x64
|
||||||
@@ -205,13 +205,13 @@ jobs:
|
|||||||
sudo apt-get -y install dbus-x11 libglu1-mesa-dev libpulse-dev libdbus-1-dev ninja-build
|
sudo apt-get -y install dbus-x11 libglu1-mesa-dev libpulse-dev libdbus-1-dev ninja-build
|
||||||
pip3 install requests conan
|
pip3 install requests conan
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Checkout externals
|
- name: Checkout externals
|
||||||
if: ${{ env.use_externals == 'true' }}
|
if: ${{ env.use_externals == 'true' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
env:
|
env:
|
||||||
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
with:
|
with:
|
||||||
@@ -244,7 +244,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
||||||
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
||||||
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
|
- uses: swift-project/setup-cpp@swift
|
||||||
- name: Build swift (without symbols)
|
- name: Build swift (without symbols)
|
||||||
if: ${{ env.do_symbols != 'true' }}
|
if: ${{ env.do_symbols != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
@@ -254,18 +254,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python3 -u scripts/build.py -w 64 -t gcc --upload-symbols
|
python3 -u scripts/build.py -w 64 -t gcc --upload-symbols
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: swiftinstaller-linux-64-${{ needs.preBuild.outputs.version }}
|
name: swiftinstaller-linux-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftinstaller-*
|
path: ${{ github.workspace }}/swiftinstaller-*
|
||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
if: ${{ env.do_symbols == 'true' }}
|
if: ${{ env.do_symbols == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: swiftsymbols-linux-64-${{ needs.preBuild.outputs.version }}
|
name: swiftsymbols-linux-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftsymbols-*
|
path: ${{ github.workspace }}/swiftsymbols-*
|
||||||
- name: Upload xswiftbus
|
- name: Upload xswiftbus
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: xswiftbus-thin-linux-64-${{ needs.preBuild.outputs.version }}
|
name: xswiftbus-thin-linux-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/xswiftbus-*
|
path: ${{ github.workspace }}/xswiftbus-*
|
||||||
@@ -296,7 +296,7 @@ jobs:
|
|||||||
extra: --archives qtbase
|
extra: --archives qtbase
|
||||||
- name: Cache InstallBuilder
|
- name: Cache InstallBuilder
|
||||||
id: cache-bitrock
|
id: cache-bitrock
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: C:\installbuilder.exe
|
path: C:\installbuilder.exe
|
||||||
key: installbuilder-${{ env.bitrock_version }}-windows-x64
|
key: installbuilder-${{ env.bitrock_version }}-windows-x64
|
||||||
@@ -320,13 +320,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install requests PyInstaller conan
|
pip install requests PyInstaller conan
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Checkout externals
|
- name: Checkout externals
|
||||||
if: ${{ env.use_externals == 'true' }}
|
if: ${{ env.use_externals == 'true' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
env:
|
env:
|
||||||
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
with:
|
with:
|
||||||
@@ -354,7 +354,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
||||||
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
||||||
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
|
- uses: swift-project/setup-cpp@swift
|
||||||
- name: Build swift (without symbols)
|
- name: Build swift (without symbols)
|
||||||
if: ${{ env.do_symbols != 'true' }}
|
if: ${{ env.do_symbols != 'true' }}
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -366,18 +366,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
build_conan\\build\\RelWithDebInfo\\generators\\conanrun.bat && python -u scripts/build.py -w 64 -t msvc --upload-symbols
|
build_conan\\build\\RelWithDebInfo\\generators\\conanrun.bat && python -u scripts/build.py -w 64 -t msvc --upload-symbols
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: swiftinstaller-windows-64-${{ needs.preBuild.outputs.version }}
|
name: swiftinstaller-windows-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftinstaller-*
|
path: ${{ github.workspace }}/swiftinstaller-*
|
||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
if: ${{ env.do_symbols == 'true' }}
|
if: ${{ env.do_symbols == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: swiftsymbols-windows-64-${{ needs.preBuild.outputs.version }}
|
name: swiftsymbols-windows-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftsymbols-*
|
path: ${{ github.workspace }}/swiftsymbols-*
|
||||||
- name: Upload xswiftbus
|
- name: Upload xswiftbus
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: xswiftbus-thin-windows-64-${{ needs.preBuild.outputs.version }}
|
name: xswiftbus-thin-windows-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/xswiftbus-*
|
path: ${{ github.workspace }}/xswiftbus-*
|
||||||
@@ -399,7 +399,7 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
- name: Cache InstallBuilder
|
- name: Cache InstallBuilder
|
||||||
id: cache-bitrock
|
id: cache-bitrock
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/installbuilder.dmg
|
path: ~/installbuilder.dmg
|
||||||
key: installbuilder-${{ env.bitrock_version }}-osx
|
key: installbuilder-${{ env.bitrock_version }}-osx
|
||||||
@@ -424,13 +424,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 install requests conan
|
pip3 install requests conan
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Checkout externals
|
- name: Checkout externals
|
||||||
if: ${{ env.use_externals == 'true' }}
|
if: ${{ env.use_externals == 'true' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
env:
|
env:
|
||||||
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
EXTERNALS_PAT: ${{ secrets.EXTERNALS_PAT }}
|
||||||
with:
|
with:
|
||||||
@@ -463,7 +463,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
VATSIM_ID: ${{ secrets.VATSIM_ID }}
|
||||||
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
VATSIM_KEY: ${{ secrets.VATSIM_KEY }}
|
||||||
- uses: Trass3r/setup-cpp@1b63900ecf3f0b7c60ee53aa7be122f2c4fe7a2c
|
- uses: swift-project/setup-cpp@swift
|
||||||
- name: Build swift (without symbols)
|
- name: Build swift (without symbols)
|
||||||
if: ${{ env.do_symbols != 'true' }}
|
if: ${{ env.do_symbols != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
@@ -473,18 +473,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python3 -u scripts/build.py -w 64 -t clang --upload-symbols
|
python3 -u scripts/build.py -w 64 -t clang --upload-symbols
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: swiftinstaller-macos-64-${{ needs.preBuild.outputs.version }}
|
name: swiftinstaller-macos-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftinstaller-*
|
path: ${{ github.workspace }}/swiftinstaller-*
|
||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
if: ${{ env.do_symbols == 'true' }}
|
if: ${{ env.do_symbols == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: swiftsymbols-macos-64-${{ needs.preBuild.outputs.version }}
|
name: swiftsymbols-macos-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/swiftsymbols-*
|
path: ${{ github.workspace }}/swiftsymbols-*
|
||||||
- name: Upload xswiftbus
|
- name: Upload xswiftbus
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: xswiftbus-thin-macos-64-${{ needs.preBuild.outputs.version }}
|
name: xswiftbus-thin-macos-64-${{ needs.preBuild.outputs.version }}
|
||||||
path: ${{ github.workspace }}/xswiftbus-*
|
path: ${{ github.workspace }}/xswiftbus-*
|
||||||
@@ -495,7 +495,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download xswiftbus-thin
|
- name: Download xswiftbus-thin
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
pattern: xswiftbus-thin-*
|
pattern: xswiftbus-thin-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
@@ -506,7 +506,7 @@ jobs:
|
|||||||
unzip -o xswiftbus-macos-64-*.zip
|
unzip -o xswiftbus-macos-64-*.zip
|
||||||
zip -r -9 xswiftbus-fat-allos-${{ needs.preBuild.outputs.version }}.zip xswiftbus
|
zip -r -9 xswiftbus-fat-allos-${{ needs.preBuild.outputs.version }}.zip xswiftbus
|
||||||
- name: Upload xswiftbus-fat
|
- name: Upload xswiftbus-fat
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: xswiftbus-fat-allos-${{ needs.preBuild.outputs.version }}
|
name: xswiftbus-fat-allos-${{ needs.preBuild.outputs.version }}
|
||||||
path: xswiftbus-fat-allos-*
|
path: xswiftbus-fat-allos-*
|
||||||
@@ -529,7 +529,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
- name: Flatten directories
|
- name: Flatten directories
|
||||||
run: |
|
run: |
|
||||||
mv swiftinstaller-*/* .
|
mv swiftinstaller-*/* .
|
||||||
@@ -566,7 +566,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install jo jq
|
sudo apt-get -y install jo jq
|
||||||
- name: Query GitHub annotations
|
- name: Query GitHub annotations
|
||||||
uses: octokit/request-action@v2.x
|
uses: octokit/request-action@v3.x
|
||||||
id: checkruns
|
id: checkruns
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user