ci: migrate GitHub Actions to Node.js 24 (#2169)

This commit is contained in:
divadiow
2026-07-24 09:16:26 +01:00
committed by Tester23
parent 4b43623c0c
commit 574fff819d

View File

@ -22,11 +22,11 @@ jobs:
new_release: ${{ steps.refs.outputs.new_release }} new_release: ${{ steps.refs.outputs.new_release }}
steps: steps:
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Semantic Release - name: Semantic Release
id: semantic id: semantic
if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha' if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha'
uses: cycjimmy/semantic-release-action@v4 uses: cycjimmy/semantic-release-action@v5
with: with:
dry_run: true dry_run: true
semantic_version: 21 semantic_version: 21
@ -61,14 +61,14 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Checkout berry submodule - name: Checkout berry submodule
run: | run: |
git submodule update --init --recursive libraries/berry git submodule update --init --recursive libraries/berry
- name: Setup MSBuild - name: Setup MSBuild
uses: microsoft/setup-msbuild@v2 uses: microsoft/setup-msbuild@v3
- name: Checkout simulator repository - name: Checkout simulator repository
run: | run: |
@ -97,7 +97,7 @@ jobs:
mkdir -Force output/${{ needs.refs.outputs.version }} mkdir -Force output/${{ needs.refs.outputs.version }}
cp obkSimulator_win32_${{ needs.refs.outputs.version }}.zip output/${{ needs.refs.outputs.version }}/obkSimulator_${{ needs.refs.outputs.version }}.zip cp obkSimulator_win32_${{ needs.refs.outputs.version }}.zip output/${{ needs.refs.outputs.version }}/obkSimulator_${{ needs.refs.outputs.version }}.zip
- name: Upload build assets - name: Upload build assets
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v6
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_sim name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_sim
path: output/${{ needs.refs.outputs.version }}/obkSimulator_${{ needs.refs.outputs.version }}.zip path: output/${{ needs.refs.outputs.version }}/obkSimulator_${{ needs.refs.outputs.version }}.zip
@ -109,7 +109,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Checkout berry submodule - name: Checkout berry submodule
run: | run: |
@ -131,7 +131,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Checkout berry submodule - name: Checkout berry submodule
run: | run: |
@ -276,9 +276,9 @@ jobs:
gcc: 10.3-2021.10 gcc: 10.3-2021.10
steps: steps:
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- uses: actions/setup-python@v5 - uses: actions/setup-python@v6
if: ${{ matrix.platform == 'OpenBL602' || matrix.platform == 'OpenRTL8721DA' || matrix.platform == 'OpenRTL8720E' || matrix.platform == 'OpenRDA5981' }} if: ${{ matrix.platform == 'OpenBL602' || matrix.platform == 'OpenRTL8721DA' || matrix.platform == 'OpenRTL8720E' || matrix.platform == 'OpenRDA5981' }}
with: with:
python-version: '3.10' python-version: '3.10'
@ -312,7 +312,7 @@ jobs:
run: make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }} run: make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }}
- name: Save build assets - name: Save build assets
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v6
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}
path: | path: |
@ -393,10 +393,10 @@ jobs:
sdk: OpenESP8266 sdk: OpenESP8266
steps: steps:
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: ESP-IDF checkout - name: ESP-IDF checkout
if: ${{ matrix.platform != 'OpenESP8266' }} if: ${{ matrix.platform != 'OpenESP8266' }}
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
repository: espressif/esp-idf repository: espressif/esp-idf
path: sdk/esp-idf path: sdk/esp-idf
@ -405,7 +405,7 @@ jobs:
- name: OpenESP8266 checkout - name: OpenESP8266 checkout
if: ${{ matrix.platform == 'OpenESP8266' }} if: ${{ matrix.platform == 'OpenESP8266' }}
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
repository: NonPIayerCharacter/OpenESP8266 repository: NonPIayerCharacter/OpenESP8266
path: sdk/OpenESP8266 path: sdk/OpenESP8266
@ -414,7 +414,7 @@ jobs:
fetch-depth: '10' fetch-depth: '10'
submodules: recursive submodules: recursive
- uses: actions/setup-python@v5 - uses: actions/setup-python@v6
id: pysetup id: pysetup
with: with:
python-version: '3.10' python-version: '3.10'
@ -427,7 +427,7 @@ jobs:
version: 1.0 version: 1.0
- name: Cache toolchain - name: Cache toolchain
id: cache-toolchain id: cache-toolchain
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: ~/.espressif # cache whole folder, not just dist path: ~/.espressif # cache whole folder, not just dist
key: ${{ matrix.sdk }}_toolchain_${{ matrix.version }}_${{ steps.pysetup.outputs.python-version }} key: ${{ matrix.sdk }}_toolchain_${{ matrix.version }}_${{ steps.pysetup.outputs.python-version }}
@ -444,7 +444,7 @@ jobs:
cd ../.. cd ../..
make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }} make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }}
- name: Save build assets - name: Save build assets
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v6
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}
path: | path: |
@ -469,8 +469,8 @@ jobs:
variant: default variant: default
steps: steps:
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- uses: Vampire/setup-wsl@v6 - uses: Vampire/setup-wsl@v7
with: with:
wsl-version: 1 wsl-version: 1
distribution: Ubuntu-22.04 distribution: Ubuntu-22.04
@ -479,7 +479,7 @@ jobs:
run: | run: |
make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }} make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT="${{ matrix.variant }}" ${{ matrix.platform }}
- name: Save build assets - name: Save build assets
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v6
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}
path: | path: |
@ -494,7 +494,7 @@ jobs:
#if: always() && needs.refs.outputs.new_release == 'true' && (github.ref == 'refs/heads/main' || github.ref_name == 'alpha') #if: always() && needs.refs.outputs.new_release == 'true' && (github.ref == 'refs/heads/main' || github.ref_name == 'alpha')
steps: steps:
- name: Merge Artifacts - name: Merge Artifacts
uses: actions/upload-artifact/merge@v4 uses: actions/upload-artifact/merge@v6
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }} name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}
#delete-merged: true #delete-merged: true
@ -506,15 +506,15 @@ jobs:
if: always() && needs.refs.outputs.new_release == 'true' && (github.ref == 'refs/heads/main' || github.ref_name == 'alpha') if: always() && needs.refs.outputs.new_release == 'true' && (github.ref == 'refs/heads/main' || github.ref_name == 'alpha')
steps: steps:
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Fetch build assets - name: Fetch build assets
uses: actions/download-artifact@v4 uses: actions/download-artifact@v7
with: with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }} name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}
path: output/${{ needs.refs.outputs.version }} path: output/${{ needs.refs.outputs.version }}
- name: Run Semantic Release - name: Run Semantic Release
id: semantic id: semantic
uses: cycjimmy/semantic-release-action@v4 uses: cycjimmy/semantic-release-action@v5
with: with:
dry_run: false dry_run: false
semantic_version: 21 semantic_version: 21