@@ -40,68 +40,68 @@ jobs:
4040 cmake -DANDROID=ON -DKDUTILS_USE_EXTERNAL_DEPENDENCIES=ON ..
4141 make -j `nproc`
4242
43- build :
44- runs-on : ${{ matrix.os }}
45- strategy :
46- fail-fast : true
47- matrix :
48- os :
49- - ubuntu-24.04
50- - ubuntu-22.04
51- - ubuntu-24.04-arm
52- - windows-2022
53- - macos-13
54- - macos-14
55- - macos-15
56- build_type :
57- - Debug
58- - Release
59- link_type :
60- - static
61- - shared
62- steps :
63- - name : Checkout sources
64- uses : actions/checkout@v4
65- with :
66- submodules : true
67-
68- - name : Install ninja-build tool
69- if : ${{ runner.os != 'Linux' }}
70- uses : urkle/action-get-ninja@e3ed0d4fc9ec9608cdc970133d71c980b6149631 # v1
71-
72- - name : Make sure MSVC is found when Ninja generator is in use
73- uses : ilammy/msvc-dev-cmd@v1
74-
75- - name : Install linux dependencies
76- if : runner.os == 'Linux'
77- run : |
78- sudo apt update -qq
79- sudo apt install -y libxkbcommon-dev libxcb-xkb-dev \
80- libxkbcommon-x11-dev wayland-scanner++ wayland-protocols \
81- libwayland-dev xvfb ninja-build \
82- gcovr
83-
84- - name : Configure project
85- run : >
86- cmake -S . -B ./build -G Ninja
87- -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
88- -DKDUTILS_CODE_COVERAGE=${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
89- -DKDUTILS_BUILD_TESTS=${{ matrix.build_type == 'Debug' }}
90- -DBUILD_SHARED_LIBS=${{ matrix.link_type == 'shared' }}
91-
92- - name : Build Project
93- run : cmake --build ./build
94-
95- - name : Run tests on Windows/macOS
96- if : ${{ matrix.build_type == 'Debug' && runner.os != 'Linux' }}
97- run : ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
98-
99- - name : Run tests on Linux
100- if : ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
101- run : xvfb-run ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
102-
103- - name : Read tests log when it fails
104- uses : andstor/file-reader-action@v1
105- if : ${{ failure() && matrix.build_type == 'Debug' }}
106- with :
107- path : " ./build/Testing/Temporary/LastTest.log"
43+ # build:
44+ # runs-on: ${{ matrix.os }}
45+ # strategy:
46+ # fail-fast: true
47+ # matrix:
48+ # os:
49+ # - ubuntu-24.04
50+ # - ubuntu-22.04
51+ # - ubuntu-24.04-arm
52+ # - windows-2022
53+ # - macos-13
54+ # - macos-14
55+ # - macos-15
56+ # build_type:
57+ # - Debug
58+ # - Release
59+ # link_type:
60+ # - static
61+ # - shared
62+ # steps:
63+ # - name: Checkout sources
64+ # uses: actions/checkout@v4
65+ # with:
66+ # submodules: true
67+ #
68+ # - name: Install ninja-build tool
69+ # if: ${{ runner.os != 'Linux' }}
70+ # uses: urkle/action-get-ninja@e3ed0d4fc9ec9608cdc970133d71c980b6149631 #v1
71+ #
72+ # - name: Make sure MSVC is found when Ninja generator is in use
73+ # uses: ilammy/msvc-dev-cmd@v1
74+ #
75+ # - name: Install linux dependencies
76+ # if: runner.os == 'Linux'
77+ # run: |
78+ # sudo apt update -qq
79+ # sudo apt install -y libxkbcommon-dev libxcb-xkb-dev \
80+ # libxkbcommon-x11-dev wayland-scanner++ wayland-protocols \
81+ # libwayland-dev xvfb ninja-build \
82+ # gcovr
83+ #
84+ # - name: Configure project
85+ # run: >
86+ # cmake -S . -B ./build -G Ninja
87+ # -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
88+ # -DKDUTILS_CODE_COVERAGE=${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
89+ # -DKDUTILS_BUILD_TESTS=${{ matrix.build_type == 'Debug' }}
90+ # -DBUILD_SHARED_LIBS=${{ matrix.link_type == 'shared' }}
91+ #
92+ # - name: Build Project
93+ # run: cmake --build ./build
94+ #
95+ # - name: Run tests on Windows/macOS
96+ # if: ${{ matrix.build_type == 'Debug' && runner.os != 'Linux' }}
97+ # run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
98+ #
99+ # - name: Run tests on Linux
100+ # if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
101+ # run: xvfb-run ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
102+ #
103+ # - name: Read tests log when it fails
104+ # uses: andstor/file-reader-action@v1
105+ # if: ${{ failure() && matrix.build_type == 'Debug' }}
106+ # with:
107+ # path: "./build/Testing/Temporary/LastTest.log"
0 commit comments