ci: re-enable ubuntu tests (#6715)
* re-enabling ubuntu tests * official GitHub workaround
This commit is contained in:
parent
e619718a1e
commit
764f2ad85a
|
@ -116,67 +116,72 @@ jobs:
|
||||||
echo "When CI is done, the above patch will be uploaded as 'code-style.diff' to https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/ ."
|
echo "When CI is done, the above patch will be uploaded as 'code-style.diff' to https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/ ."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
# sanitizer-tests-ubuntu:
|
sanitizer-tests-ubuntu:
|
||||||
# runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# needs: [ what-to-make ]
|
needs: [ what-to-make ]
|
||||||
# if: ${{ needs.what-to-make.outputs.make-tests == 'true' }}
|
if: ${{ needs.what-to-make.outputs.make-tests == 'true' }}
|
||||||
# env:
|
env:
|
||||||
# NODE_PATH: /usr/lib/nodejs:/usr/share/nodejs
|
NODE_PATH: /usr/lib/nodejs:/usr/share/nodejs
|
||||||
# steps:
|
steps:
|
||||||
# - name: Show Configuration
|
- name: Show Configuration
|
||||||
# run: |
|
run: |
|
||||||
# echo '${{ toJSON(needs) }}'
|
echo '${{ toJSON(needs) }}'
|
||||||
# echo '${{ toJSON(runner) }}'
|
echo '${{ toJSON(runner) }}'
|
||||||
# cat /etc/os-release
|
cat /etc/os-release
|
||||||
# - name: Get Dependencies
|
- name: Get Dependencies
|
||||||
# run: |
|
run: |
|
||||||
# set -ex
|
set -ex
|
||||||
# sudo apt-get update
|
sudo apt-get update
|
||||||
# sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
# ca-certificates \
|
ca-certificates \
|
||||||
# clang \
|
clang \
|
||||||
# cmake \
|
cmake \
|
||||||
# gettext \
|
gettext \
|
||||||
# libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
# libdeflate-dev \
|
libdeflate-dev \
|
||||||
# libevent-dev \
|
libevent-dev \
|
||||||
# libfmt-dev \
|
libfmt-dev \
|
||||||
# libminiupnpc-dev \
|
libminiupnpc-dev \
|
||||||
# libnatpmp-dev \
|
libnatpmp-dev \
|
||||||
# libpsl-dev \
|
libpsl-dev \
|
||||||
# libssl-dev \
|
libssl-dev \
|
||||||
# ninja-build \
|
ninja-build \
|
||||||
# npm
|
npm
|
||||||
# - name: Get Source
|
- name: Temporary workaround for sanitizer crashes
|
||||||
# uses: actions/checkout@v4
|
# https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-14/+bug/2048768
|
||||||
# with:
|
# https://github.com/actions/runner-images/issues/9491
|
||||||
# submodules: recursive
|
# https://github.com/actions/runner-images/pull/9513
|
||||||
# path: src
|
run: sudo sysctl vm.mmap_rnd_bits=28
|
||||||
# - name: Configure
|
- name: Get Source
|
||||||
# run: |
|
uses: actions/checkout@v4
|
||||||
# cmake \
|
with:
|
||||||
# -S src \
|
submodules: recursive
|
||||||
# -B obj \
|
path: src
|
||||||
# -G Ninja \
|
- name: Configure
|
||||||
# -DCMAKE_BUILD_TYPE=Debug \
|
run: |
|
||||||
# -DCMAKE_CXX_COMPILER='clang++' \
|
cmake \
|
||||||
# -DCMAKE_CXX_FLAGS='-gdwarf-4 -fno-omit-frame-pointer -fsanitize=address,leak,undefined' \
|
-S src \
|
||||||
# -DCMAKE_C_COMPILER='clang' \
|
-B obj \
|
||||||
# -DCMAKE_C_FLAGS='-gdwarf-4 -fno-omit-frame-pointer -fsanitize=address,leak,undefined' \
|
-G Ninja \
|
||||||
# -DCMAKE_INSTALL_PREFIX=pfx \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
# -DENABLE_CLI=OFF \
|
-DCMAKE_CXX_COMPILER='clang++' \
|
||||||
# -DENABLE_DAEMON=OFF \
|
-DCMAKE_CXX_FLAGS='-gdwarf-4 -fno-omit-frame-pointer -fsanitize=address,leak,undefined' \
|
||||||
# -DENABLE_GTK=OFF \
|
-DCMAKE_C_COMPILER='clang' \
|
||||||
# -DENABLE_MAC=OFF \
|
-DCMAKE_C_FLAGS='-gdwarf-4 -fno-omit-frame-pointer -fsanitize=address,leak,undefined' \
|
||||||
# -DENABLE_QT=OFF \
|
-DCMAKE_INSTALL_PREFIX=pfx \
|
||||||
# -DENABLE_TESTS=ON \
|
-DENABLE_CLI=OFF \
|
||||||
# -DENABLE_UTILS=ON \
|
-DENABLE_DAEMON=OFF \
|
||||||
# -DREBUILD_WEB=OFF \
|
-DENABLE_GTK=OFF \
|
||||||
# -DRUN_CLANG_TIDY=OFF
|
-DENABLE_MAC=OFF \
|
||||||
# - name: Make
|
-DENABLE_QT=OFF \
|
||||||
# run: cmake --build obj --config Debug --target libtransmission-test transmission-show
|
-DENABLE_TESTS=ON \
|
||||||
# - name: Test with sanitizers
|
-DENABLE_UTILS=ON \
|
||||||
# run: cmake -E chdir obj ctest -j $(nproc) --build-config Debug --output-on-failure
|
-DREBUILD_WEB=OFF \
|
||||||
|
-DRUN_CLANG_TIDY=OFF
|
||||||
|
- name: Make
|
||||||
|
run: cmake --build obj --config Debug --target libtransmission-test transmission-show
|
||||||
|
- name: Test with sanitizers
|
||||||
|
run: cmake -E chdir obj ctest -j $(nproc) --build-config Debug --output-on-failure
|
||||||
|
|
||||||
sanitizer-tests-macos:
|
sanitizer-tests-macos:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
@ -311,7 +316,7 @@ jobs:
|
||||||
-DENABLE_GTK=${{ (needs.what-to-make.outputs.make-gtk == 'true') && 'ON' || 'OFF' }} \
|
-DENABLE_GTK=${{ (needs.what-to-make.outputs.make-gtk == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DENABLE_MAC=${{ (needs.what-to-make.outputs.make-mac == 'true') && 'ON' || 'OFF' }} \
|
-DENABLE_MAC=${{ (needs.what-to-make.outputs.make-mac == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DENABLE_QT=${{ (needs.what-to-make.outputs.make-qt == 'true') && 'ON' || 'OFF' }} \
|
-DENABLE_QT=${{ (needs.what-to-make.outputs.make-qt == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DENABLE_TESTS=ON \
|
-DENABLE_TESTS=${{ (needs.what-to-make.outputs.make-tests == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DENABLE_UTILS=${{ (needs.what-to-make.outputs.make-utils == 'true') && 'ON' || 'OFF' }} \
|
-DENABLE_UTILS=${{ (needs.what-to-make.outputs.make-utils == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} \
|
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} \
|
||||||
-DENABLE_WERROR=ON \
|
-DENABLE_WERROR=ON \
|
||||||
|
@ -514,7 +519,7 @@ jobs:
|
||||||
-DENABLE_GTK=OFF `
|
-DENABLE_GTK=OFF `
|
||||||
-DENABLE_MAC=OFF `
|
-DENABLE_MAC=OFF `
|
||||||
-DENABLE_QT=${{ (needs.what-to-make.outputs.make-dist == 'true' || needs.what-to-make.outputs.make-qt == 'true') && 'ON' || 'OFF' }} `
|
-DENABLE_QT=${{ (needs.what-to-make.outputs.make-dist == 'true' || needs.what-to-make.outputs.make-qt == 'true') && 'ON' || 'OFF' }} `
|
||||||
-DENABLE_TESTS=ON `
|
-DENABLE_TESTS=${{ (needs.what-to-make.outputs.make-tests == 'true') && 'ON' || 'OFF' }} `
|
||||||
-DENABLE_UTILS=ON `
|
-DENABLE_UTILS=ON `
|
||||||
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} `
|
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} `
|
||||||
-DENABLE_WERROR=ON `
|
-DENABLE_WERROR=ON `
|
||||||
|
|
Loading…
Reference in New Issue