-
-
Notifications
You must be signed in to change notification settings - Fork 62
51 lines (45 loc) · 1.61 KB
/
build-phar.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build PHARs
on:
# Run on pushes to master and on pull requests which touch files used when building the PHARs.
# Prevent the build from running when there are only irrelevant changes.
push:
branches:
- master
paths:
- '.github/workflows/build-phar.yml'
- '.github/workflows/reusable-build-phar.yml'
- 'scripts/build-phar.php'
- 'autoload.php'
- 'src/Config.php'
- 'src/Exceptions/RuntimeException.php'
- 'src/Exceptions/TokenizerException.php'
- 'src/Tokenizers/PHP.php'
- 'src/Util/Tokens.php'
pull_request:
paths:
- '.github/workflows/build-phar.yml'
- '.github/workflows/reusable-build-phar.yml'
- 'scripts/build-phar.php'
- 'autoload.php'
- 'src/Config.php'
- 'src/Exceptions/RuntimeException.php'
- 'src/Exceptions/TokenizerException.php'
- 'src/Tokenizers/PHP.php'
- 'src/Util/Tokens.php'
# Allow manually triggering the workflow.
workflow_dispatch:
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
# Deliberately missing PHP 8.0 as that PHAR is build and used in the test workflow.
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.1', '8.2', '8.3', '8.4', 'nightly']
name: "Build Phar on PHP: ${{ matrix.php }}"
uses: ./.github/workflows/reusable-build-phar.yml
with:
phpVersion: ${{ matrix.php }}