Skip to content

Commit bbb9b6b

Browse files
authored
Merge pull request #63 from asgrim/include-nightly-phar
Include nightly PHAR
2 parents 833105c + f2b4fb6 commit bbb9b6b

File tree

4 files changed

+51
-29
lines changed

4 files changed

+51
-29
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -96,31 +96,4 @@ jobs:
9696
- unit-tests
9797
- coding-standards
9898
- static-analysis
99-
runs-on: ${{ matrix.operating-system }}
100-
strategy:
101-
matrix:
102-
operating-system:
103-
- ubuntu-latest
104-
php-versions:
105-
- '8.1'
106-
steps:
107-
- name: Setup PHP
108-
uses: shivammathur/setup-php@v2
109-
with:
110-
coverage: none
111-
tools: composer, box
112-
php-version: "${{ matrix.php-version }}"
113-
- uses: actions/checkout@v4
114-
with:
115-
fetch-depth: 0
116-
# Temporary until we have a first tag; Box needs at least one tag to exist!
117-
- run: git describe --tags HEAD || git tag 0.0.0
118-
- uses: ramsey/composer-install@v3
119-
- name: Build PHAR
120-
run: box compile
121-
- name: Check the PHAR executes
122-
run: php pie.phar --version
123-
- uses: actions/upload-artifact@v4
124-
with:
125-
name: pie-${{ github.sha }}.phar
126-
path: pie.phar
99+
uses: ./.github/workflows/release-unsigned-phar.yml

.github/workflows/docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,25 @@ concurrency:
2121
cancel-in-progress: false
2222

2323
jobs:
24+
build-phar:
25+
uses: ./.github/workflows/release-unsigned-phar.yml
26+
2427
# Build job
2528
build:
2629
runs-on: ubuntu-latest
30+
needs:
31+
- build-phar
2732
steps:
2833
- name: Checkout
2934
uses: actions/checkout@v4
3035
- name: Build documentation
3136
run: .github/docs/build-docs.sh
37+
- name: Fetch built PHAR from artifacts
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: pie-${{ github.sha }}.phar
41+
- name: Copy PHAR into docs
42+
run: cp pie.phar docs-package/pie-nightly.phar
3243
- name: Upload artifact
3344
uses: actions/upload-pages-artifact@v3
3445
with:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Release unsigned PHAR"
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
8+
build-phar:
9+
runs-on: ${{ matrix.operating-system }}
10+
strategy:
11+
matrix:
12+
operating-system:
13+
- ubuntu-latest
14+
php-versions:
15+
- '8.1'
16+
steps:
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
coverage: none
21+
tools: composer, box
22+
php-version: "${{ matrix.php-version }}"
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
# Temporary until we have a first tag; Box needs at least one tag to exist!
27+
- run: git describe --tags HEAD || git tag 0.0.0
28+
- uses: ramsey/composer-install@v3
29+
- name: Build PHAR
30+
run: box compile
31+
- name: Check the PHAR executes
32+
run: php pie.phar --version
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: pie-${{ github.sha }}.phar
36+
path: pie.phar

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ please read [extension-maintainers](./docs/extension-maintainers.md).
1010

1111
### Manual installation
1212

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

0 commit comments

Comments
 (0)