Skip to content

Commit

Permalink
Merge pull request #402 from google/fix-publish
Browse files Browse the repository at this point in the history
Fixed build-linux and build-macos-arm
  • Loading branch information
javiber authored Mar 21, 2024
2 parents ee11220 + 48186be commit 006a0e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3 # v4 doesn't work on the container

- name: Build package
run: |
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
SYSTEM_VERSION_COMPAT: 0
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -137,7 +137,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Install Python
run: |
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Install poetry
run: pip install poetry
Expand Down
6 changes: 5 additions & 1 deletion temporian/implementation/numpy_cc/operators/tick_calendar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ py::array_t<double> tick_calendar(

// Valid date
if (cur_time_or.has_value()) {
const auto cur_time = cur_time_or.value();
// NOTE: std:optional.value() fails to build on github runner
// for arm64 macos although this function is on the
// c++17 standard.
// This alternative way to access the value works correctly.
const auto cur_time = *cur_time_or;

// Finish condition
if (cur_time.seconds_since_epoch > end_t) {
Expand Down

0 comments on commit 006a0e1

Please sign in to comment.