Skip to content

Add phar build

Add phar build #4

Workflow file for this run

name: PHAR
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
jobs:
build-agent:
name: Build Agent
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.head_ref || github.ref }}
- name: Setup PHP for agent dependencies
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401
with:
php-version: '7.2'
tools: composer:v2
- name: Install dependencies
working-directory: agent
run: composer update --no-progress --no-interaction --prefer-dist
- name: Setup PHP for Box
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401
with:
php-version: '8.2'
tools: box
ini-values: phar.readonly=0
- name: Build PHAR
run: scripts/build.sh
- name: Setup PHP for PHAR test
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401
with:
php-version: '7.2'
- name: Test PHAR
run: php bin/sentry-agent help