github: Update actions so they don't use deprecated Node.js 20
This commit is contained in:
@@ -33,7 +33,7 @@ jobs:
|
|||||||
# since the NDK might be newly installed, we have to use this to avoid cache misses
|
# since the NDK might be newly installed, we have to use this to avoid cache misses
|
||||||
CCACHE_COMPILERCHECK: content
|
CCACHE_COMPILERCHECK: content
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
# make sure the NDK we reference is installed and exported so we can use it to build OpenSSL
|
# make sure the NDK we reference is installed and exported so we can use it to build OpenSSL
|
||||||
- name: Install NDK
|
- name: Install NDK
|
||||||
id: ndk-install
|
id: ndk-install
|
||||||
@@ -42,14 +42,14 @@ jobs:
|
|||||||
echo Using NDK ${NDK_VERSION}
|
echo Using NDK ${NDK_VERSION}
|
||||||
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}"
|
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}"
|
||||||
echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${NDK_VERSION}" >> "$GITHUB_OUTPUT"
|
echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${NDK_VERSION}" >> "$GITHUB_OUTPUT"
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ccache
|
path: ~/.cache/ccache
|
||||||
key: ccache-android-${{ github.sha }}
|
key: ccache-android-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-android-
|
ccache-android-
|
||||||
# necessary for newer versions of the Gradle plugin
|
# necessary for newer versions of the Gradle plugin
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ANDROID_NDK_ROOT: ${{ steps.ndk-install.outputs.ANDROID_NDK_ROOT }}
|
ANDROID_NDK_ROOT: ${{ steps.ndk-install.outputs.ANDROID_NDK_ROOT }}
|
||||||
- run: ccache -s
|
- run: ccache -s
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Lint Results
|
name: Lint Results
|
||||||
path: src/frontends/android/app/build/reports/lint-results*.xml
|
path: src/frontends/android/app/build/reports/lint-results*.xml
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
sanitizer: ${{ matrix.sanitizer }}
|
sanitizer: ${{ matrix.sanitizer }}
|
||||||
|
|
||||||
- name: Upload Crash
|
- name: Upload Crash
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
if: failure() && steps.build.outcome == 'success'
|
if: failure() && steps.build.outcome == 'success'
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.sanitizer }}-artifacts
|
name: ${{ matrix.sanitizer }}-artifacts
|
||||||
|
|||||||
@@ -38,20 +38,20 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
language: [ 'cpp', 'python', 'ruby' ]
|
language: [ 'cpp', 'python', 'ruby' ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v4
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
config-file: ./.github/codeql/config.yml
|
config-file: ./.github/codeql/config.yml
|
||||||
|
|
||||||
- if: matrix.language == 'python' || matrix.language == 'ruby'
|
- if: matrix.language == 'python' || matrix.language == 'ruby'
|
||||||
name: Autobuild
|
name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v3
|
uses: github/codeql-action/autobuild@v4
|
||||||
|
|
||||||
# this follows the steps of the Linux workflow
|
# this follows the steps of the Linux workflow
|
||||||
- if: matrix.language == 'cpp'
|
- if: matrix.language == 'cpp'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ccache
|
path: ~/.cache/ccache
|
||||||
key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
|
key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
|
||||||
@@ -73,6 +73,6 @@ jobs:
|
|||||||
run: ccache -s
|
run: ccache -s
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v4
|
||||||
with:
|
with:
|
||||||
category: "/language:${{matrix.language}}"
|
category: "/language:${{matrix.language}}"
|
||||||
|
|||||||
+10
-10
@@ -64,8 +64,8 @@ jobs:
|
|||||||
CC: ${{ matrix.compiler || 'gcc' }}
|
CC: ${{ matrix.compiler || 'gcc' }}
|
||||||
TEST: ${{ matrix.test }}
|
TEST: ${{ matrix.test }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ccache
|
path: ~/.cache/ccache
|
||||||
# with regards to ccache, monolithic builds don't differ from regular
|
# with regards to ccache, monolithic builds don't differ from regular
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
verbose: true
|
verbose: true
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Logs ${{ github.job }}
|
name: Logs ${{ github.job }}
|
||||||
path: config.log
|
path: config.log
|
||||||
@@ -122,8 +122,8 @@ jobs:
|
|||||||
TEST: ${{ matrix.test }}
|
TEST: ${{ matrix.test }}
|
||||||
ACTIVE_TRANSFORMS_REF: .github/active-transforms/${{ matrix.test }}
|
ACTIVE_TRANSFORMS_REF: .github/active-transforms/${{ matrix.test }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
# path is different on newer systems
|
# path is different on newer systems
|
||||||
path: |
|
path: |
|
||||||
@@ -142,7 +142,7 @@ jobs:
|
|||||||
echo "TESTS_ACTIVE_TRANSFORMS=$HOME/active-transforms.log" >> $GITHUB_ENV
|
echo "TESTS_ACTIVE_TRANSFORMS=$HOME/active-transforms.log" >> $GITHUB_ENV
|
||||||
- uses: ./.github/actions/default
|
- uses: ./.github/actions/default
|
||||||
- name: Upload active transforms
|
- name: Upload active transforms
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: active-transforms-${{ matrix.test }}-${{ matrix.os }}-${{ matrix.leak-detective }}
|
name: active-transforms-${{ matrix.test }}-${{ matrix.os }}-${{ matrix.leak-detective }}
|
||||||
path: ${{ env.TESTS_ACTIVE_TRANSFORMS }}
|
path: ${{ env.TESTS_ACTIVE_TRANSFORMS }}
|
||||||
@@ -152,7 +152,7 @@ jobs:
|
|||||||
test ! -f $ACTIVE_TRANSFORMS_REF || diff -u --color=always $ACTIVE_TRANSFORMS_REF $TESTS_ACTIVE_TRANSFORMS
|
test ! -f $ACTIVE_TRANSFORMS_REF || diff -u --color=always $ACTIVE_TRANSFORMS_REF $TESTS_ACTIVE_TRANSFORMS
|
||||||
- run: ccache -s
|
- run: ccache -s
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Logs ${{ github.job }}
|
name: Logs ${{ github.job }}
|
||||||
path: config.log
|
path: config.log
|
||||||
@@ -175,8 +175,8 @@ jobs:
|
|||||||
CC: ${{ matrix.compiler || 'gcc' }}
|
CC: ${{ matrix.compiler || 'gcc' }}
|
||||||
TEST: ${{ matrix.test }}
|
TEST: ${{ matrix.test }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
# path is different on newer systems
|
# path is different on newer systems
|
||||||
path: |
|
path: |
|
||||||
@@ -193,7 +193,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/default
|
- uses: ./.github/actions/default
|
||||||
- run: ccache -s
|
- run: ccache -s
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Logs ${{ github.job }}
|
name: Logs ${{ github.job }}
|
||||||
path: config.log
|
path: config.log
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TEST: macos
|
TEST: macos
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/Library/Caches/ccache
|
path: ~/Library/Caches/ccache
|
||||||
key: ccache-${{ runner.os }}-${{ github.sha }}
|
key: ccache-${{ runner.os }}-${{ github.sha }}
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/default
|
- uses: ./.github/actions/default
|
||||||
- run: ccache -s
|
- run: ccache -s
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Logs ${{ github.job }}
|
name: Logs ${{ github.job }}
|
||||||
path: config.log
|
path: config.log
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TEST: sonarcloud
|
TEST: sonarcloud
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cache/ccache
|
~/.cache/ccache
|
||||||
@@ -44,11 +44,11 @@ jobs:
|
|||||||
sudo apt-get install -qq ccache
|
sudo apt-get install -qq ccache
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
ccache -z
|
ccache -z
|
||||||
- uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v6.0.0
|
- uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v7.1.0
|
||||||
- run: |
|
- run: |
|
||||||
echo "BUILD_WRAPPER_OUT_DIR=$HOME/bw-output" >> $GITHUB_ENV
|
echo "BUILD_WRAPPER_OUT_DIR=$HOME/bw-output" >> $GITHUB_ENV
|
||||||
- uses: ./.github/actions/default
|
- uses: ./.github/actions/default
|
||||||
- uses: SonarSource/sonarqube-scan-action@v6.0.0
|
- uses: SonarSource/sonarqube-scan-action@v7.1.0
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TEST: tkm
|
TEST: tkm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CCACHE_DIR }}
|
path: ${{ env.CCACHE_DIR }}
|
||||||
key: ccache-tkm-${{ github.sha }}
|
key: ccache-tkm-${{ github.sha }}
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ jobs:
|
|||||||
OS_NAME: linux
|
OS_NAME: linux
|
||||||
TEST: ${{ matrix.test }}
|
TEST: ${{ matrix.test }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ccache
|
path: ~/.cache/ccache
|
||||||
key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.sha }}
|
key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.sha }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/default
|
- uses: ./.github/actions/default
|
||||||
- run: ccache -s
|
- run: ccache -s
|
||||||
- if: ${{ failure() }}
|
- if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: Logs ${{ github.job }}
|
name: Logs ${{ github.job }}
|
||||||
path: config.log
|
path: config.log
|
||||||
|
|||||||
Reference in New Issue
Block a user