diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 95c16cb..f5ab386 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -40,12 +40,22 @@ jobs: uses: actions/download-artifact@v6 with: name: pie-${{ github.sha }}.phar - - name: Verify the PHAR + - name: Fetch the executable PIEs from artifacts + uses: actions/download-artifact@v5 + with: + path: executable-pie-binaries + pattern: pie-${{ github.sha }}-*.bin + merge-multiple: true + - name: Verify the PHAR and binaries env: GH_TOKEN: ${{ github.token }} - run: gh attestation verify pie.phar --repo ${{ github.repository }} + run: | + gh attestation verify pie.phar --repo ${{ github.repository }} ; + find executable-pie-binaries -type f -exec gh attestation verify {} --repo ${{ github.repository }} \; - name: Copy PHAR into docs run: cp pie.phar docs-package/pie-nightly.phar + - name: Copy executables into docs + run: cp executable-pie-binaries/* docs-package/ - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: diff --git a/docs/usage.md b/docs/usage.md index da62dde..174c2ff 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -88,6 +88,25 @@ the time being. Please also note there are some limitations: If you find the binary releases useful, please leave feedback or upvote on the relevant discussions, so we can gauge interest in improving this functionality. +The "nightly" versions of these can be found here: + +| Operating System | Architecture | Download URL | +|------------------|------------------|-----------------------------------------------| +| Linux | ARM 64 / aarch64 | https://php.github.io/pie/pie-Linux-ARM64 | +| Linux | amd64 / x86_64 | https://php.github.io/pie/pie-Linux-X64 | +| OS X | ARM 64 / aarch64 | https://php.github.io/pie/pie-macOS-ARM64 | +| OS X | Intel / x86_64 | https://php.github.io/pie/pie-macOS-X64 | +| Windows | x86_64 | https://php.github.io/pie/pie-Windows-X64.exe | + +We *highly* recommend you verify the file came from the PHP GitHub repository +before running it, for example: + +```shell +$ gh attestation verify --owner php pie-Linux-X64 +$ chmod +x pie-Linux-X64 +$ ./pie-Linux-X64 --version +``` + ## Prerequisites for PIE Running PIE requires PHP 8.1 or newer. However, you may still use PIE to install