Skip to content

Work on build

Work on build #18

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
ubuntu:
strategy:
matrix:
version: ['8.3']
runs-on: ubuntu-latest
env:
- name: RUNNER_ALLOW_RUNASROOT

Check failure on line 10 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 10, Col: 7): A sequence was not expected
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