CI: updated to newer tool versions

This commit is contained in:
SChernykh 2024-01-26 15:31:52 +01:00
parent 08fb0ecb53
commit aacee86563
7 changed files with 56 additions and 56 deletions

View file

@ -35,7 +35,7 @@ jobs:
apk add git cmake gcc g++ make apk add git cmake gcc g++ make
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -102,7 +102,7 @@ jobs:
file p2pool file p2pool
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-alpine-static-${{ matrix.config.arch }} name: p2pool-alpine-static-${{ matrix.config.arch }}
path: build/p2pool path: build/p2pool
@ -126,7 +126,7 @@ jobs:
sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev ${{ matrix.config.c }} ${{ matrix.config.cpp }} sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev ${{ matrix.config.c }} ${{ matrix.config.cpp }}
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -157,7 +157,7 @@ jobs:
./p2pool_tests ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-${{ matrix.config.os }} name: p2pool-${{ matrix.config.os }}
path: build/p2pool path: build/p2pool
@ -181,7 +181,7 @@ jobs:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -235,7 +235,7 @@ jobs:
./p2pool_tests ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-ubuntu-static-libs name: p2pool-ubuntu-static-libs
path: build/p2pool path: build/p2pool
@ -258,7 +258,7 @@ jobs:
sudo apt install -y git build-essential cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu qemu-user sudo apt install -y git build-essential cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu qemu-user
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -312,7 +312,7 @@ jobs:
qemu-aarch64 -L /usr/aarch64-linux-gnu ./p2pool_tests qemu-aarch64 -L /usr/aarch64-linux-gnu ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-${{ matrix.config.os }}-aarch64 name: p2pool-${{ matrix.config.os }}-aarch64
path: build/p2pool path: build/p2pool
@ -334,7 +334,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -394,7 +394,7 @@ jobs:
./p2pool_tests.exe ./p2pool_tests.exe
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-msys2-${{ matrix.config.c }}.exe name: p2pool-msys2-${{ matrix.config.c }}.exe
path: build/p2pool.exe path: build/p2pool.exe
@ -413,7 +413,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -458,7 +458,7 @@ jobs:
./p2pool_tests.exe ./p2pool_tests.exe
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-vs-${{ matrix.config.os }}-randomx-${{ matrix.config.rx }}-upnp-${{ matrix.config.upnp }}.exe name: p2pool-vs-${{ matrix.config.os }}-randomx-${{ matrix.config.rx }}-upnp-${{ matrix.config.upnp }}.exe
path: build/Release/p2pool.exe path: build/Release/p2pool.exe
@ -470,7 +470,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -524,7 +524,7 @@ jobs:
./p2pool_tests ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-macos-11 name: p2pool-macos-11
path: build/p2pool path: build/p2pool
@ -536,7 +536,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -571,7 +571,7 @@ jobs:
make -j3 make -j3
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-macos-11-aarch64 name: p2pool-macos-11-aarch64
path: build/p2pool path: build/p2pool
@ -591,7 +591,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -634,7 +634,7 @@ jobs:
./p2pool_tests ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }} name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }}
path: build/p2pool path: build/p2pool
@ -654,7 +654,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -678,7 +678,7 @@ jobs:
./p2pool_tests ./p2pool_tests
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }} name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }}
path: build/p2pool path: build/p2pool

View file

@ -23,12 +23,12 @@ jobs:
run: | run: |
wget https://apt.llvm.org/llvm.sh wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh chmod +x llvm.sh
sudo ./llvm.sh 17 sudo ./llvm.sh 18
sudo apt-get install -y clang-tidy-17 sudo apt-get install -y clang-tidy-18
clang-tidy-17 --verify-config clang-tidy-18 --verify-config
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -36,9 +36,9 @@ jobs:
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DDEV_CLANG_TIDY=ON cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang-18 -DCMAKE_CXX_COMPILER=clang++-18 -DDEV_CLANG_TIDY=ON
- name: Run clang-tidy - name: Run clang-tidy
run: | run: |
cd src cd src
clang-tidy-17 *.cpp -p ../build -checks=-clang-diagnostic-undefined-internal -warnings-as-errors=* -header-filter=^[^\.] clang-tidy-18 *.cpp -p ../build -checks=-clang-diagnostic-undefined-internal,-clang-diagnostic-nan-infinity-disabled -warnings-as-errors=* -header-filter=^[^\.]

View file

@ -47,13 +47,13 @@ jobs:
sudo apt update && sudo apt install git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev sudo apt update && sudo apt install git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v3
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
@ -64,7 +64,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v2 uses: github/codeql-action/autobuild@v3
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl # 📚 https://git.io/JvXDl
@ -78,4 +78,4 @@ jobs:
# make release # make release
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v3

View file

@ -25,12 +25,12 @@ jobs:
sudo apt install -y libuv1-dev libzmq3-dev libcurl4-openssl-dev sudo apt install -y libuv1-dev libzmq3-dev libcurl4-openssl-dev
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Checkout cppcheck - name: Checkout cppcheck
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: danmar/cppcheck repository: danmar/cppcheck
path: cppcheck-main path: cppcheck-main
@ -53,7 +53,7 @@ jobs:
./run.sh ./run.sh
- name: Archive full error list - name: Archive full error list
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: errors_full-linux name: errors_full-linux
path: cppcheck/errors_full.txt path: cppcheck/errors_full.txt
@ -65,12 +65,12 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Checkout cppcheck - name: Checkout cppcheck
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: danmar/cppcheck repository: danmar/cppcheck
path: cppcheck-main path: cppcheck-main
@ -95,7 +95,7 @@ jobs:
./run.cmd ./run.cmd
- name: Archive full error list - name: Archive full error list
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: errors_full-windows name: errors_full-windows
path: cppcheck/errors_full.txt path: cppcheck/errors_full.txt

View file

@ -33,7 +33,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -45,7 +45,7 @@ jobs:
# run: cmake --build ${{ env.build }} # run: cmake --build ${{ env.build }}
- name: Initialize MSVC Code Analysis - name: Initialize MSVC Code Analysis
uses: microsoft/msvc-code-analysis-action@24c285ab36952c9e9182f4b78dfafbac38a7e5ee uses: microsoft/msvc-code-analysis-action@96315324a485db21449515180214ecb78c16a1c5
# Provide a unique ID to access the sarif output path # Provide a unique ID to access the sarif output path
id: run-analysis id: run-analysis
with: with:
@ -56,13 +56,13 @@ jobs:
# Upload SARIF file to GitHub Code Scanning Alerts # Upload SARIF file to GitHub Code Scanning Alerts
- name: Upload SARIF to GitHub - name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v2 uses: github/codeql-action/upload-sarif@v3
with: with:
sarif_file: ${{ steps.run-analysis.outputs.sarif }} sarif_file: ${{ steps.run-analysis.outputs.sarif }}
# Upload SARIF file as an Artifact to download and view # Upload SARIF file as an Artifact to download and view
- name: Upload SARIF as an Artifact - name: Upload SARIF as an Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: sarif-file name: sarif-file
path: ${{ steps.run-analysis.outputs.sarif }} path: ${{ steps.run-analysis.outputs.sarif }}

View file

@ -8,7 +8,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -18,7 +18,7 @@ jobs:
XZ_OPT=-e9 tar --exclude=".git" --exclude="build" -f build/p2pool_source.tar.xz -c ../p2pool --xz XZ_OPT=-e9 tar --exclude=".git" --exclude="build" -f build/p2pool_source.tar.xz -c ../p2pool --xz
- name: Archive source code - name: Archive source code
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_source.tar.xz name: p2pool_source.tar.xz
path: build/p2pool_source.tar.xz path: build/p2pool_source.tar.xz

View file

@ -26,7 +26,7 @@ jobs:
sudo apt install -y git build-essential cmake gcc-12 g++-12 sudo apt install -y git build-essential cmake gcc-12 g++-12
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -75,7 +75,7 @@ jobs:
grep 'Synchronization finished successfully' p2pool.log grep 'Synchronization finished successfully' p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_ubuntu_data_tsan name: p2pool_ubuntu_data_tsan
path: | path: |
@ -111,7 +111,7 @@ jobs:
cp -r lib /tmp/libcxx_msan cp -r lib /tmp/libcxx_msan
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -160,7 +160,7 @@ jobs:
grep 'Synchronization finished successfully' p2pool.log grep 'Synchronization finished successfully' p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_ubuntu_data_msan name: p2pool_ubuntu_data_msan
path: | path: |
@ -180,7 +180,7 @@ jobs:
sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev gcc-12 g++-12 sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev gcc-12 g++-12
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -206,7 +206,7 @@ jobs:
grep 'Synchronization finished successfully' p2pool.log grep 'Synchronization finished successfully' p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_ubuntu_data_ubsan name: p2pool_ubuntu_data_ubsan
path: | path: |
@ -226,7 +226,7 @@ jobs:
sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev gcc-12 g++-12 sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev gcc-12 g++-12
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -252,7 +252,7 @@ jobs:
grep 'Synchronization finished successfully' p2pool.log grep 'Synchronization finished successfully' p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_ubuntu_data_asan name: p2pool_ubuntu_data_asan
path: | path: |
@ -266,7 +266,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -320,7 +320,7 @@ jobs:
grep 'Synchronization finished successfully' p2pool.log grep 'Synchronization finished successfully' p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_macos_data name: p2pool_macos_data
path: | path: |
@ -334,7 +334,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -365,7 +365,7 @@ jobs:
findstr /C:"Synchronization finished successfully" p2pool.log findstr /C:"Synchronization finished successfully" p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_windows_data_debug_asan name: p2pool_windows_data_debug_asan
path: | path: |
@ -379,7 +379,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
@ -408,7 +408,7 @@ jobs:
findstr /C:"Synchronization finished successfully" p2pool.log findstr /C:"Synchronization finished successfully" p2pool.log
- name: Archive p2pool.log - name: Archive p2pool.log
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: p2pool_windows_data_leaks name: p2pool_windows_data_leaks
path: | path: |