Skip to content

Commit 180c163

Browse files
committed
feat: Update PHP extension Cargo.toml version and configure RUSTFLAGS for macOS builds.
1 parent ef90e64 commit 180c163

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ jobs:
317317
- name: Update version in files
318318
run: python update_version.py ${{ steps.version.outputs.VERSION }}
319319

320+
- name: Set RUSTFLAGS for macOS
321+
if: runner.os == 'macOS'
322+
run: echo "RUSTFLAGS=-C link-arg=-undefined -C link-arg=dynamic_lookup" >> $GITHUB_ENV
323+
320324
- name: Build PHP extension
321325
run: |
322326
cd bindings/php

bindings/php/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "npdatetime-php"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
publish = false
66

bindings/php/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "4mritgiri/npdatetime-php",
2+
"name": "4mritgiri/npdatetime",
33
"description": "PHP extension for Nepali (Bikram Sambat) date conversion and manipulation",
44
"type": "library",
55
"keywords": [

update_version.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ def update_version(version: str):
9797
f"__version__ = '{version}'",
9898
"Django __init__.py"
9999
),
100+
101+
# PHP extension
102+
(
103+
root / "bindings/php/Cargo.toml",
104+
r'^version = ".*"',
105+
f'version = "{version}"',
106+
"PHP Cargo.toml"
107+
),
100108
]
101109

102110
success_count = 0

0 commit comments

Comments
 (0)