File tree Expand file tree Collapse file tree 6 files changed +20
-52
lines changed
Expand file tree Collapse file tree 6 files changed +20
-52
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5656 with :
5757 fetch-depth : 0
5858
59+ - name : Setup Rust
60+ uses : dtolnay/rust-toolchain@stable
61+
62+ - name : Build Release
63+ run : cargo build --release
64+
5965 - name : Create Git tag
6066 run : |
6167 VERSION=${{ needs.check-version.outputs.version }}
@@ -67,12 +73,10 @@ jobs:
6773 git push origin "$TAG_NAME"
6874
6975 - name : Create GitHub Release
70- uses : actions/create-release@v1
71- env :
72- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+ uses : softprops/action-gh-release@v1
7377 with :
7478 tag_name : v${{ needs.check-version.outputs.version }}
75- release_name : Release v${{ needs.check-version.outputs.version }}
79+ name : Release v${{ needs.check-version.outputs.version }}
7680 body : |
7781 # PHP TOON Extension v${{ needs.check-version.outputs.version }}
7882
8690
8791 ## What's New
8892 View the [git log](../../compare/$(git describe --tags --abbrev=0 HEAD^)...v${{ needs.check-version.outputs.version }}) for changes in this release.
93+ files : target/release/libphp_rs_toon.so
8994 draft : false
9095 prerelease : false
9196
Original file line number Diff line number Diff line change 11[package ]
22name = " php-rs-toon"
3- version = " 1.0.3 "
3+ version = " 1.0.4 "
44edition = " 2021"
55
66[lib ]
Original file line number Diff line number Diff line change @@ -16,16 +16,12 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
1616# Set working directory
1717WORKDIR /app
1818
19- # Copy all files including the pre-co# Download and install php-rs-toon extension from GitHub release
19+ # Download and install php-rs-toon extension from GitHub release
2020ARG TOON_VERSION=1.0.3
21- RUN mkdir -p /tmp/extension && \
22- cd /tmp/extension && \
23- curl -L https://github.com/mesak/php-rs-toon/releases/download/v${TOON_VERSION}/php-rs-toon-linux-x86_64.zip \
24- -o extension.zip && \
25- unzip extension.zip && \
26- mv libphp_rs_toon.so $(php-config --extension-dir)/ && \
27- echo "extension=libphp_rs_toon.so" > /usr/local/etc/php/conf.d/php-rs-toon.ini && \
28- cd / && rm -rf /tmp/extension
21+ RUN curl -L https://github.com/mesak/php-rs-toon/releases/download/v${TOON_VERSION}/libphp_rs_toon.so \
22+ -o $(php-config --extension-dir)/libphp_rs_toon.so && \
23+ chmod +x $(php-config --extension-dir)/libphp_rs_toon.so && \
24+ echo "extension=libphp_rs_toon.so" > /usr/local/etc/php/conf.d/php-rs-toon.ini
2925# Verify extension is loaded
3026RUN php -m | grep php-rs-toon || (echo "Extension not loaded!" && exit 1)
3127
Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ WORKDIR /app
1717
1818# Download and install the php-rs-toon extension from GitHub release
1919ARG TOON_VERSION=1.0.3
20- RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/* && \
21- curl -L https://github.com/mesak/php-rs-toon/releases/download/v${TOON_VERSION}/php-rs-toon-linux-x86_64.zip \
22- -o /tmp/extension.zip && \
23- unzip /tmp/extension.zip -d /tmp && \
24- mv /tmp/libphp_rs_toon.so /usr/local/lib/php/extensions/no-debug-non-zts-20220829/libphp_rs_toon.so && \
25- rm /tmp/extension.zip
20+ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* && \
21+ curl -L https://github.com/mesak/php-rs-toon/releases/download/v${TOON_VERSION}/libphp_rs_toon.so \
22+ -o /usr/local/lib/php/extensions/no-debug-non-zts-20220829/libphp_rs_toon.so && \
23+ chmod +x /usr/local/lib/php/extensions/no-debug-non-zts-20220829/libphp_rs_toon.so
2624
2725# Enable the extension
2826RUN echo "extension=libphp_rs_toon.so" > /usr/local/etc/php/conf.d/php-rs-toon.ini
You can’t perform that action at this time.
0 commit comments