Skip to content

Commit

Permalink
Build phar in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Aug 31, 2021
1 parent 4ff65ef commit 74b238e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
File renamed without changes.
37 changes: 37 additions & 0 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Compile PHAR

on:
push:
branches: [ main ]
pull_request:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@2.13.0
with:
php-version: ${{ matrix.php-versions }}

- name: Install dependencies (lib)
run: composer install --prefer-dist --no-progress --no-dev --optimize-autoloader --classmap-authoritative

- name: Install dependencies (phar builder)
run: composer install --prefer-dist --no-progress --optimize-autoloader --classmap-authoritative
working-directory: tools/phar

- name: Compile PHAR
run: vendor/bin/box compile
working-directory: tools/phar

- name: Ensure PHAR is OK
run: build/jolitypo.phar fr_FR README.md
working-directory: tools/phar

0 comments on commit 74b238e

Please sign in to comment.