Skip to content

Commit 40b4541

Browse files
committed
Add GitHub actions
1 parent 6114855 commit 40b4541

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Install
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
export DEBIAN_FRONTEND="noninteractive"
8+
sudo apt-get update
9+
sudo apt-get -y -q install firebird-dev firebird3.0 firebird3.0-common firebird3.0-server
10+
FB_ORIGINAL_PASS=`sudo cat /etc/firebird/3.0/SYSDBA.password | grep ISC_PASSWORD | sed -e 's/ISC_PASSWORD="\([^"]*\)".*/\1/'`
11+
gsec -user SYSDBA -password ${FB_ORIGINAL_PASS} -modify sysdba -pw masterkey
12+
sudo service firebird3.0 restart
13+
sudo apt-get -y install pkg-config build-essential autoconf bison re2c libxml2-dev libsqlite3-dev

.github/workflows/main.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

Comments
 (0)