Skip to content

Commit

Permalink
ci: use macos-13 in publish-python to fix missing c++20 support
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Feb 24, 2024
1 parent 6741403 commit 0b49343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest] # at least macos-13 is required to enable c++20 support

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
CIBW_ARCHS_MACOS: universal2
CIBW_ENVIRONMENT_MACOS: CMAKE_OSX_ARCHITECTURES="arm64;x86_64"
# the default macOS target version is 10.9 which does not support c++20 coroutines
MACOSX_DEPLOYMENT_TARGET: "10.15"
# MACOSX_DEPLOYMENT_TARGET: "10.13"
CIBW_BUILD_VERBOSITY: 1

- name: Upload wheels
Expand Down
2 changes: 1 addition & 1 deletion core/src/datamatrix/DMDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ DetectorResults Detect(const BitMatrix& image, bool tryHarder, bool tryRotate, b
}
}
#else
auto result = DetectPure(image);
auto result = DetectPure_(image);
if (!result.isValid() && !isPure)
result = DetectNew(image, tryHarder, tryRotate);
if (!result.isValid() && tryHarder && !isPure)
Expand Down

0 comments on commit 0b49343

Please sign in to comment.