# since the NDK might be newly installed, we have to use this to avoid cache misses
CCACHE_COMPILERCHECK: content
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
# make sure the NDK we reference is installed and exported so we can use it to build OpenSSL
- name: Install NDK
id: ndk-install
echo Using NDK ${NDK_VERSION}
yes | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}"
echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${NDK_VERSION}" >> "$GITHUB_OUTPUT"
- - uses: actions/cache@v3
+ - uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-android-${{ github.sha }}
env:
ANDROID_NDK_ROOT: ${{ steps.ndk-install.outputs.ANDROID_NDK_ROOT }}
- run: ccache -s
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: Lint Results
path: src/frontends/android/app/build/reports/lint-results*.xml
matrix:
language: [ 'cpp', 'python', 'ruby' ]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Initialize CodeQL
- uses: github/codeql-action/init@v2
+ uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/config.yml
- if: matrix.language == 'python' || matrix.language == 'ruby'
name: Autobuild
- uses: github/codeql-action/autobuild@v2
+ uses: github/codeql-action/autobuild@v3
# this follows the steps of the Linux workflow
- if: matrix.language == 'cpp'
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
run: ccache -s
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v2
+ uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
CC: ${{ matrix.compiler || 'gcc' }}
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: ~/.cache/ccache
# with regards to ccache, monolithic builds don't differ from regular
- if: ${{ success() && matrix.test == 'coverage' }}
run: bash <(curl -s https://codecov.io/bash)
- if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: Logs ${{ github.job }}
path: config.log
CC: ${{ matrix.compiler || 'gcc' }}
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
# path is different on newer systems
path: |
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: Logs ${{ github.job }}
path: config.log
# LSan causes spurious SIGSEGV after tests due to DTLS handling by glibc
ASAN_OPTIONS: intercept_tls_get_addr=0
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: ~/.ccache
key: ccache-${{ matrix.os }}-${{ env.CC }}-${{ matrix.test }}-${{ github.sha }}
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: Logs ${{ github.job }}
path: config.log
env:
TEST: macos
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: ~/Library/Caches/ccache
key: ccache-${{ runner.os }}-${{ github.sha }}
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: Logs ${{ github.job }}
path: config.log
env:
TEST: sonarcloud
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
- - uses: actions/cache@v3
+ - uses: actions/cache@v4
with:
path: |
~/.cache/ccache
env:
TEST: tkm
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-tkm-${{ github.sha }}
OS_NAME: linux
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v3
- - uses: actions/cache@v3
+ - uses: actions/checkout@v4
+ - uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.sha }}
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: Logs ${{ github.job }}
path: config.log