Skip to content

Commit b05d418

Browse files
committed
fix: set c++ strand to 17
1 parent d7aa1af commit b05d418

2 files changed

Lines changed: 24 additions & 21 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
platform: [windows-latest, macos-latest, ubuntu-latest, ubuntu-18.04, ubuntu-20.04]
18-
python-version: ["3.6", "3.8", "3.9", "3.10", "3.11" , "3.x"]
17+
platform: [windows-latest, macos-latest, ubuntu-18.04]
18+
python-version: ["3.x"]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -32,29 +32,29 @@ jobs:
3232
- name: Run tests
3333
run: python -m pytest
3434

35-
# Job 2: Build SDist & Wheels and Publish to TestPyPI
36-
publish:
37-
needs: build_and_test
38-
runs-on: ${{ matrix.os }}
39-
strategy:
40-
matrix:
41-
os: [windows-latest, macos-latest, ubuntu-latest, ubuntu-18.04, ubuntu-20.04]
35+
# # Job 2: Build SDist & Wheels and Publish to TestPyPI
36+
# publish:
37+
# needs: build_and_test
38+
# runs-on: ${{ matrix.os }}
39+
# strategy:
40+
# matrix:
41+
# os: [ubuntu-22.04, windows-2022, macos-11]
4242

43-
steps:
44-
- uses: actions/checkout@v4
43+
# steps:
44+
# - uses: actions/checkout@v4
4545

46-
- name: Set up Python
47-
uses: actions/setup-python@v4
46+
# - name: Set up Python
47+
# uses: actions/setup-python@v4
4848

49-
- name: Build SDist & Wheels
50-
run: |
51-
pip install build
52-
python -m build
49+
# - name: Build SDist & Wheels
50+
# run: |
51+
# pip install build
52+
# python -m build
5353

54-
- name: Check metadata
55-
run: |
56-
pip install twine
57-
twine check dist/*
54+
# - name: Check metadata
55+
# run: |
56+
# pip install twine
57+
# twine check dist/*
5858

5959
# - name: Publish to TestPyPI
6060
# if: github.ref == 'refs/heads/master' # Only if on master branch

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
project(dztimer LANGUAGES CXX)
22
cmake_minimum_required(VERSION 3.15...3.27)
33

4+
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6+
47
# Try to import all Python components potentially needed by nanobind
58
find_package(Python 3.8
69
REQUIRED COMPONENTS Interpreter Development.Module

0 commit comments

Comments
 (0)