From 9a0cf72040af40880427ee68eaf6c19545d842a1 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Nahan <814683+macintoshplus@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:49:51 +0100 Subject: [PATCH] add PIE support --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ composer.json | 9 ++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 composer.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..eccf7c6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Publish Windows Releases +on: + release: + types: [created] + +permissions: + contents: write + +jobs: + get-extension-matrix: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.extension-matrix.outputs.matrix }} + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Get the extension matrix + id: extension-matrix + uses: php/php-windows-builder/extension-matrix@v1 + build: + needs: get-extension-matrix + runs-on: ${{ matrix.os }} + continue-on-error: false + strategy: + fail-fast: true + matrix: ${{fromJson(needs.get-extension-matrix.outputs.matrix)}} + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Build the extension + uses: php/php-windows-builder/extension@v1 + with: + php-version: ${{ matrix.php-version }} + arch: ${{ matrix.arch }} + ts: ${{ matrix.ts }} + args: '--enable-sync' + release: + runs-on: ubuntu-latest + needs: build + if: ${{ github.event_name == 'release' }} + steps: + - name: Upload artifact to the release + uses: php/php-windows-builder/release@v1 + with: + release: ${{ github.event.release.tag_name }} +# token: ${{ secrets.GITHUB_TOKEN }} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fbe8910 --- /dev/null +++ b/composer.json @@ -0,0 +1,9 @@ +{ + "name": "php/sync", + "type": "php-ext", + "license": "MIT", + "description": "A PHP extension for Synchronization Objects (sync)", + "require": { + "php": ">= 8.0.0" + } +} \ No newline at end of file