2021-03-30 21:18:38 +02:00
|
|
|
name: build
|
2021-05-03 16:20:39 +02:00
|
|
|
on: [create]
|
2021-03-30 21:00:33 +02:00
|
|
|
jobs:
|
|
|
|
run:
|
2021-09-04 17:25:57 +02:00
|
|
|
runs-on: Linux
|
2021-03-30 21:00:33 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php:
|
2021-03-30 23:13:54 +02:00
|
|
|
- '8.0'
|
|
|
|
- '7.4'
|
|
|
|
- '7.3'
|
|
|
|
- '7.2'
|
|
|
|
- '7.1'
|
2021-03-30 21:18:38 +02:00
|
|
|
name: PHP ${{ matrix.php }} build
|
2021-03-30 21:00:33 +02:00
|
|
|
env:
|
|
|
|
PHP_CS_FIXER_IGNORE_ENV: 1
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
|
|
|
|
|
|
|
- name: Setup PHP ${{ matrix.php }}
|
2021-09-04 17:22:45 +02:00
|
|
|
env:
|
|
|
|
PHP_VERSION: ${{ matrix.php }}
|
|
|
|
run: |
|
|
|
|
echo "$HOME/.local/php/$PHP_VERSION" >> $GITHUB_PATH
|
2021-03-30 21:00:33 +02:00
|
|
|
|
|
|
|
- name: Build
|
2021-04-01 22:58:03 +02:00
|
|
|
env:
|
|
|
|
API_ID: ${{ secrets.API_ID }}
|
|
|
|
API_HASH: ${{ secrets.API_HASH }}
|
|
|
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
|
|
TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
|
|
DEST: ${{ secrets.DEST }}
|
|
|
|
DESTINATIONS: ${{ secrets.DESTINATIONS }}
|
2021-04-06 22:26:05 +02:00
|
|
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
2021-03-30 21:00:33 +02:00
|
|
|
run: |
|
2021-03-30 21:35:07 +02:00
|
|
|
tests/makephar.sh
|