Skip to content

Commit 15741d8

Browse files
authored
Merge pull request #138 from mgerhold/color-picker
Deprecate CMake (#139) + add Color Picker Component
2 parents 7e2d626 + 55675a9 commit 15741d8

File tree

181 files changed

+4959
-1806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+4959
-1806
lines changed

.github/workflows/cmake.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/cpp-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
sudo apt-get update
3131
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y
32-
meson setup build -Dbuildtype=release -Dclang_libcpp=disabled
32+
meson setup build -Dbuildtype=release -Dclang_libcpp=disabled -Dtests=true
3333
meson compile -C build git_version.hpp
3434
3535
- uses: cpp-linter/cpp-linter-action@v2

.github/workflows/test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Test CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: Run Tests
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: "0"
17+
18+
- name: Setup Clang
19+
run: |
20+
wget https://apt.llvm.org/llvm.sh
21+
chmod +x llvm.sh
22+
sudo ./llvm.sh 17
23+
sudo apt-get install libc++-17* libc++abi*17* llvm-17 -y
24+
echo "CC=clang-17" >> "$GITHUB_ENV"
25+
echo "CXX=clang++-17" >> "$GITHUB_ENV"
26+
27+
- name: Setup meson
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install meson
31+
32+
- name: Install dependencies
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y
36+
pip install gcovr
37+
38+
- name: Configure
39+
run: meson setup build -Dbuildtype=debug -Db_coverage=true -Dtests=true -Dclang_libcpp=enabled
40+
41+
- name: Run tests
42+
run: meson test -C build --verbose
43+
44+
- name: Generate Coverage File
45+
run: |
46+
ninja coverage -C build
47+
48+
- name: Create Coverage Report
49+
uses: insightsengineering/coverage-action@v2
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
path: ./build/meson-logs/coverage.xml
53+
fail: false # TODO: enable after coverage is higher than 0.000001 % xD
54+
# Publish the rendered output as a PR comment
55+
publish: true
56+
coverage-summary-title: "Code Coverage Summary"
57+
togglable-report: true
58+
# TODO: use the diff feature of that later when we require test coverage on PR's to not go down
59+
60+
- name: Upload test coverage artifacts
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: Tests coverage artifacts
64+
path: |
65+
./build/meson-logs/coverage.xml
66+
./build/meson-logs/coveragereport/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cmake-build-*
8383

8484
.vscode/
8585

86-
recordings/
86+
/recordings/
8787
logs/
8888
/build-*
8989
/toolchains/

0 commit comments

Comments
 (0)