Skip to content

Commit ff3114f

Browse files
authored
Moving popsicle to yup ! (#65)
1 parent c8b54ce commit ff3114f

File tree

251 files changed

+50010
-2574
lines changed

Some content is hidden

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

251 files changed

+50010
-2574
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/build_ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- "**/modules/**"
1010
- "**/tests/**"
1111
- "**/thirdparty/**"
12+
- "!**/native/generated/**"
13+
- "!**/native/java*/**"
1214
- "!**/native/*_android.*"
1315
- "!**/native/*_emscripten.*"
1416
- "!**/native/*_linux.*"

.github/workflows/build_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- "**/modules/**"
1111
- "**/tests/**"
1212
- "**/thirdparty/**"
13+
- "!**/native/generated/**"
14+
- "!**/native/java*/**"
1315
- "!**/native/*_android.*"
1416
- "!**/native/*_apple.*"
1517
- "!**/native/*_emscripten.*"

.github/workflows/build_macos.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- "**/modules/**"
1111
- "**/tests/**"
1212
- "**/thirdparty/**"
13+
- "!**/native/generated/**"
14+
- "!**/native/java*/**"
1315
- "!**/native/*_android.*"
1416
- "!**/native/*_emscripten.*"
1517
- "!**/native/*_linux.*"
@@ -20,12 +22,9 @@ on:
2022
- "**"
2123

2224
concurrency:
23-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
25+
group: ${{ github.workflow }}-${{ github.ref }}
2426
cancel-in-progress: true
2527

26-
env:
27-
DEVELOPER_DIR: /Applications/Xcode_15.1.app/Contents/Developer
28-
2928
jobs:
3029
configure:
3130
runs-on: macos-latest

.github/workflows/build_wasm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- "**/modules/**"
1111
- "**/tests/**"
1212
- "**/thirdparty/**"
13+
- "!**/native/generated/**"
14+
- "!**/native/java*/**"
1315
- "!**/native/*_android.*"
1416
- "!**/native/*_apple.*"
1517
- "!**/native/*_linux.*"

.github/workflows/build_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- "**/modules/**"
1111
- "**/tests/**"
1212
- "**/thirdparty/**"
13+
- "!**/native/generated/**"
14+
- "!**/native/java*/**"
1315
- "!**/native/*_android.*"
1416
- "!**/native/*_apple.*"
1517
- "!**/native/*_emscripten.*"

.github/workflows/clang_format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
**/*.hpp
3737
**/*.mm
3838
**/*.m
39+
!**/pybind11/**
3940
!**/thirdparty/**
4041
4142
- name: Run clang-format

.github/workflows/coverage.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- "**/cmake/**"
1010
- "**/modules/**"
1111
- "**/tests/**"
12+
- "!**/native/generated/**"
13+
- "!**/native/java*/**"
1214
- "!**/native/*_android.*"
1315
- "!**/native/*_apple.*"
1416
- "!**/native/*_emscripten.*"
@@ -26,6 +28,8 @@ on:
2628
- "**/cmake/**"
2729
- "**/modules/**"
2830
- "**/tests/**"
31+
- "!**/native/generated/**"
32+
- "!**/native/java*/**"
2933
- "!**/native/*_android.*"
3034
- "!**/native/*_apple.*"
3135
- "!**/native/*_emscripten.*"
@@ -46,10 +50,10 @@ env:
4650
libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev
4751
libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev
4852
libxrandr-dev libxrender-dev libglu1-mesa-dev libegl1-mesa-dev mesa-common-dev lcov
49-
IGNORE_ERRORS: "mismatch,gcov,source,negative,unused,empty"
53+
IGNORE_ERRORS: "mismatch,gcov,source,negative,unused,empty,format,corrupt"
5054

5155
jobs:
52-
coverage:
56+
cpp-coverage:
5357
runs-on: ubuntu-latest
5458

5559
steps:
@@ -79,25 +83,27 @@ jobs:
7983
working-directory: ${{ runner.workspace }}/build
8084
run: cmake --build . --target coverage_clean
8185

82-
- name: Run Tests
86+
- name: Run C++ Tests
8387
working-directory: ${{ runner.workspace }}/build/tests/Debug
8488
run: ./yup_tests --gtest_output=xml:test_results.xml
8589

86-
- name: Generate Combined Coverage Report
90+
- name: Generate C++ Coverage Report
8791
working-directory: ${{ runner.workspace }}/build
8892
run: |
89-
lcov --directory . --capture --output-file coverage/coverage.info --ignore-errors mismatch,gcov,source,negative,unused,empty
93+
mkdir -p coverage
94+
lcov --directory . --capture --output-file coverage/coverage.info --ignore-errors ${IGNORE_ERRORS}
9095
lcov --remove coverage/coverage.info \
96+
"*/pybind11/*" \
9197
"*/thirdparty/*" \
9298
"*/build/*" \
9399
"*/tests/*" \
94100
"*/usr/*" \
95101
"*/opt/*" \
96102
"*/CMakeFiles/*" \
97-
--output-file coverage/coverage_final.info --ignore-errors mismatch,gcov,source,negative,unused,empty
103+
--output-file coverage/coverage_final.info --ignore-errors ${IGNORE_ERRORS}
98104
lcov --list coverage/coverage_final.info
99105
100-
- name: Upload Overall Coverage to Codecov
106+
- name: Upload Coverage to Codecov
101107
uses: codecov/codecov-action@v4
102108
with:
103109
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/python_linux.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Linux Python
2+
3+
on:
4+
push:
5+
paths:
6+
- "CMakeLists.txt"
7+
- "**/workflows/python_linux.yml"
8+
- "**/cmake/**"
9+
- "**/modules/**"
10+
- "**/thirdparty/**"
11+
- "**/python/**"
12+
- "!**/native/generated/**"
13+
- "!**/native/java*/**"
14+
- "!**/native/*_android.*"
15+
- "!**/native/*_apple.*"
16+
- "!**/native/*_emscripten.*"
17+
- "!**/native/*_ios.*"
18+
- "!**/native/*_mac.*"
19+
- "!**/native/*_wasm.*"
20+
- "!**/native/*_windows.*"
21+
branches:
22+
- "**"
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
build_python:
30+
name: build_cp${{matrix.python}}-${{ matrix.platform_id }}
31+
runs-on: ${{ matrix.os }}
32+
continue-on-error: false
33+
34+
strategy:
35+
fail-fast: true
36+
matrix:
37+
include:
38+
- { os: ubuntu-latest, python: 311, platform_id: manylinux_x86_64, cibw_archs: x86_64 }
39+
#- { os: ubuntu-latest, python: 311, platform_id: manylinux_aarch64, cibw_archs: aarch64 }
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- name: Set up QEMU
45+
if: matrix.cibw_archs == 'aarch64'
46+
uses: docker/setup-qemu-action@v3
47+
with:
48+
platforms: arm64
49+
50+
- name: Setup and install python
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: "3.11"
54+
55+
- name: Build wheels
56+
uses: pypa/[email protected]
57+
env:
58+
CIBW_ARCHS: ${{matrix.cibw_archs}}
59+
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
60+
CIBW_TEST_SKIP: "*-manylinux_aarch64"
61+
CIBW_DEBUG_TRACEBACK: TRUE
62+
CIBW_ENVIRONMENT: CIBW_DEBUG_TRACEBACK=TRUE
63+
with:
64+
package-dir: python
65+
66+
- name: Store failures artifacts
67+
if: failure()
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: compare-data
71+
path: |
72+
./python/wheelhouse/compare_data/
73+
!./python/wheelhouse/compare_data/.gitignore
74+
if-no-files-found: ignore
75+
retention-days: 5
76+
compression-level: 0
77+
overwrite: true

.github/workflows/python_macos.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: MacOS Python
2+
3+
on:
4+
push:
5+
paths:
6+
- "CMakeLists.txt"
7+
- "**/workflows/python_macos.yml"
8+
- "**/cmake/**"
9+
- "**/modules/**"
10+
- "**/thirdparty/**"
11+
- "**/python/**"
12+
- "!**/native/generated/**"
13+
- "!**/native/java*/**"
14+
- "!**/native/*_android.*"
15+
- "!**/native/*_emscripten.*"
16+
- "!**/native/*_linux.*"
17+
- "!**/native/*_ios.*"
18+
- "!**/native/*_wasm.*"
19+
- "!**/native/*_windows.*"
20+
branches:
21+
- "**"
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
build_python:
29+
name: build_cp${{matrix.python}}-${{ matrix.platform_id }}
30+
runs-on: ${{ matrix.os }}
31+
continue-on-error: false
32+
33+
strategy:
34+
fail-fast: true
35+
matrix:
36+
include:
37+
- { os: macos-15, python: 311, platform_id: macosx_universal2, cibw_archs: universal2 }
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Setup and install python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: "3.11"
46+
47+
- name: Build wheels
48+
uses: pypa/[email protected]
49+
env:
50+
CIBW_ARCHS: ${{matrix.cibw_archs}}
51+
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
52+
#CIBW_TEST_SKIP: "*-macosx_x86_64 *-macosx_universal2:x86_64"
53+
CIBW_DEBUG_TRACEBACK: TRUE
54+
CIBW_ENVIRONMENT: |
55+
CIBW_DEBUG_TRACEBACK=TRUE MACOSX_DEPLOYMENT_TARGET=11.0 YUP_OSX_DEPLOYMENT_TARGET=11.0 YUP_OSX_ARCHITECTURES="x86_64;arm64"
56+
with:
57+
package-dir: python
58+
59+
- name: Store failures artifacts
60+
if: failure()
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: compare-data
64+
path: |
65+
python/tests/compare_data/
66+
!python/tests/compare_data/.gitignore
67+
if-no-files-found: ignore
68+
retention-days: 5
69+
compression-level: 0
70+
overwrite: true

0 commit comments

Comments
 (0)