forked from php/pecl-database-pdo_oci
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (73 loc) · 2.23 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build and Test
on: [push, pull_request]
jobs:
ubuntu:
strategy:
matrix:
version: ['8.3']
runs-on: ubuntu-latest
env:
- name: RUNNER_ALLOW_RUNASROOT
value: "1"
steps:
- name: Setup Oracle Instant Client
run: |
curl -O https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
curl -O https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip -o instantclient-basiclite-linuxx64.zip
unzip -o instantclient-sdk-linuxx64.zip
mv instantclient_* /tmp/instantclient
- name: Show directory structure
run: |
cd /tmp/instantclient
pwd
tree
- name: Checkout pdo_oci
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.version}}
- name: Build pdo_oci
run: |
phpize
./configure --with-pdo-oci=shared,instantclient,/tmp/instantclient
make install
# echo "extension=pdo_oci.so" >> /etc/php.ini
# - name: Test pdo_oci
# run: make test TESTS=tests
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ['8.3']
arch: [x64]
ts: [ts]
runs-on: windows-2022
steps:
- name: Checkout pdo_oci
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: php/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
- name: Install OCI
run: powershell .github/workflows/install-oci.ps1 -arch ${{matrix.arch}}
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}
toolset: ${{steps.setup-php.outputs.toolset}}
- name: phpize
run: phpize
- name: configure
run: configure --with-pdo-oci=instantclient\sdk,shared --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: Run smoke test
run: deplister ext\php_pdo_oci.dll | grep OCI