Skip to content

Work on build

Work on build #23

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
ubuntu:
strategy:
matrix:
version: ['8.3']
runs-on: ubuntu-latest
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: 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
sudo make install
sudo echo "extension=pdo_oci.so" >> /etc/php/${{matrix.version}}/cli/conf.d/40-pdo_oci.ini
- name: Show directory structure
run: |
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 PDO_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