Skip to content

Commit

Permalink
fix: set c++ strand to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Kin-Zhang committed Oct 21, 2023
1 parent d7aa1af commit b05d418
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest, ubuntu-18.04, ubuntu-20.04]
python-version: ["3.6", "3.8", "3.9", "3.10", "3.11" , "3.x"]
platform: [windows-latest, macos-latest, ubuntu-18.04]
python-version: ["3.x"]

steps:
- uses: actions/checkout@v4
Expand All @@ -32,29 +32,29 @@ jobs:
- name: Run tests
run: python -m pytest

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

steps:
- uses: actions/checkout@v4
# steps:
# - uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
# - name: Set up Python
# uses: actions/setup-python@v4

- name: Build SDist & Wheels
run: |
pip install build
python -m build
# - name: Build SDist & Wheels
# run: |
# pip install build
# python -m build

- name: Check metadata
run: |
pip install twine
twine check dist/*
# - name: Check metadata
# run: |
# pip install twine
# twine check dist/*

# - name: Publish to TestPyPI
# if: github.ref == 'refs/heads/master' # Only if on master branch
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
project(dztimer LANGUAGES CXX)
cmake_minimum_required(VERSION 3.15...3.27)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Try to import all Python components potentially needed by nanobind
find_package(Python 3.8
REQUIRED COMPONENTS Interpreter Development.Module
Expand Down

0 comments on commit b05d418

Please sign in to comment.