|
| 1 | +on: |
| 2 | + push: |
| 3 | + pull_request: |
| 4 | + schedule: |
| 5 | + - cron: '0 0 * * *' |
| 6 | + |
| 7 | +jobs: |
| 8 | + linux: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + continue-on-error: false |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + php: ['7.4', '8.0', '8.1', '8.2'] |
| 15 | + steps: |
| 16 | + - name: Checkout php-src |
| 17 | + uses: actions/checkout@v3 |
| 18 | + with: |
| 19 | + repository: 'php/php-src' |
| 20 | + ref: 'PHP-${{ matrix.php }}' |
| 21 | + - name: Checkout php-firebird |
| 22 | + uses: actions/checkout@v3 |
| 23 | + with: |
| 24 | + path: 'ext/php-firebird' |
| 25 | + - name: Install dependencies |
| 26 | + uses: ./ext/php-firebird/.github/actions/install-linux |
| 27 | + - name: Build |
| 28 | + run: | |
| 29 | + ./buildconf --force |
| 30 | + ./configure --disable-all --with-interbase |
| 31 | + make -j$(/usr/bin/nproc) |
| 32 | + - name: Test |
| 33 | + run: sudo make test TESTS='ext/php-firebird --show-diff' |
| 34 | + linux-debug: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + continue-on-error: false |
| 37 | + strategy: |
| 38 | + fail-fast: false |
| 39 | + matrix: |
| 40 | + php: ['7.4', '8.0', '8.1', '8.2'] |
| 41 | + steps: |
| 42 | + - name: Checkout php-src |
| 43 | + uses: actions/checkout@v3 |
| 44 | + with: |
| 45 | + repository: 'php/php-src' |
| 46 | + ref: 'PHP-${{ matrix.php }}' |
| 47 | + - name: Checkout php-firebird |
| 48 | + uses: actions/checkout@v3 |
| 49 | + with: |
| 50 | + path: 'ext/php-firebird' |
| 51 | + - name: Install dependencies |
| 52 | + uses: ./ext/php-firebird/.github/actions/install-linux |
| 53 | + - name: Build |
| 54 | + run: | |
| 55 | + ./buildconf --force |
| 56 | + ./configure --disable-all --with-interbase --enable-debug |
| 57 | + make -j$(/usr/bin/nproc) |
| 58 | + - name: Test |
| 59 | + run: sudo make test TESTS='ext/php-firebird --show-diff' |
| 60 | + |
0 commit comments