Skip to content

Commit 7522e21

Browse files
committed
add github workflow for test-pypi cross-OS wheel builds
1 parent c2f9139 commit 7522e21

4 files changed

Lines changed: 47 additions & 104 deletions

File tree

.github/workflows/testpypi-linux.yml

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

.github/workflows/testpypi-macos.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Windows wheels (TestPyPI)
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*-test*"
7+
8+
jobs:
9+
build_windows_wheels:
10+
name: Build Windows wheels
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
17+
submodules: recursive
18+
19+
- uses: actions/setup-python@v6
20+
with:
21+
python-version: 3.11
22+
23+
- name: Install build tools
24+
run: python -m pip install --upgrade pip
25+
- run: python -m pip install cibuildwheel twine nanobind build
26+
27+
- name: Download Eigen headers
28+
run: |
29+
mkdir deps\eigen3
30+
curl -L https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz `
31+
| tar xz -C deps\eigen3 --strip-components=1
32+
33+
- name: Build wheels
34+
run: python -m cibuildwheel --output-dir wheelhouse
35+
env:
36+
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"
37+
CIBW_ARCHS_WINDOWS: "auto"
38+
39+
- name: Upload to TestPyPI
40+
run: |
41+
twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*
42+
env:
43+
TWINE_USERNAME: __token__
44+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}

include/fdaPDE-cpp/fdaPDE/core/fdaPDE/src/geoframe/data_layer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ class scalar_data_layer {
568568
template <typename T> static constexpr bool is_valid_pair_v = is_valid_pair<T>::value;
569569
// moves std::tuple<Ts...> to T<Ts...>
570570
template <template <typename...> typename T, typename U> struct strip_tuple_into;
571-
template <template <typename...> typename T, typename... Us>
572-
struct strip_tuple_into<T, std::tuple<Us...>> : std::type_identity<T<Us...>> { };
571+
template <template <typename...> typename T, typename... Us> struct strip_tuple_into<T, std::tuple<Us...>> {
572+
using type = T<Us...>;
573+
};
573574
public:
574575
template <typename T> using reference = typename data_table<T>::reference;
575576
template <typename T> using const_reference = typename data_table<T>::const_reference;

0 commit comments

Comments
 (0)