Skip to content

Commit

Permalink
Merge pull request #63 from asgrim/include-nightly-phar
Browse files Browse the repository at this point in the history
Include nightly PHAR
  • Loading branch information
asgrim authored Oct 3, 2024
2 parents 833105c + f2b4fb6 commit bbb9b6b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 29 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,4 @@ jobs:
- unit-tests
- coding-standards
- static-analysis
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
php-versions:
- '8.1'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
tools: composer, box
php-version: "${{ matrix.php-version }}"
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Temporary until we have a first tag; Box needs at least one tag to exist!
- run: git describe --tags HEAD || git tag 0.0.0
- uses: ramsey/composer-install@v3
- name: Build PHAR
run: box compile
- name: Check the PHAR executes
run: php pie.phar --version
- uses: actions/upload-artifact@v4
with:
name: pie-${{ github.sha }}.phar
path: pie.phar
uses: ./.github/workflows/release-unsigned-phar.yml
11 changes: 11 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,25 @@ concurrency:
cancel-in-progress: false

jobs:
build-phar:
uses: ./.github/workflows/release-unsigned-phar.yml

# Build job
build:
runs-on: ubuntu-latest
needs:
- build-phar
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build documentation
run: .github/docs/build-docs.sh
- name: Fetch built PHAR from artifacts
uses: actions/download-artifact@v4
with:
name: pie-${{ github.sha }}.phar
- name: Copy PHAR into docs
run: cp pie.phar docs-package/pie-nightly.phar
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release-unsigned-phar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Release unsigned PHAR"

on:
workflow_call:

jobs:

build-phar:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
php-versions:
- '8.1'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
tools: composer, box
php-version: "${{ matrix.php-version }}"
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Temporary until we have a first tag; Box needs at least one tag to exist!
- run: git describe --tags HEAD || git tag 0.0.0
- uses: ramsey/composer-install@v3
- name: Build PHAR
run: box compile
- name: Check the PHAR executes
run: php pie.phar --version
- uses: actions/upload-artifact@v4
with:
name: pie-${{ github.sha }}.phar
path: pie.phar
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ please read [extension-maintainers](./docs/extension-maintainers.md).

### Manual installation

- Download `pie.phar` from the [latest releases](https://github.com/php/pie/releases)
- Download `pie.phar` either:
- [latest stable release](https://github.com/php/pie/releases)
- [latest unstable nightly](https://php.github.io/pie/pie-nightly.phar)
- Validate the signature in `pie.phar.asc`
- You may then invoke PIE with `php pie.phar <command>`

Expand Down

0 comments on commit bbb9b6b

Please sign in to comment.