[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] [pecl-database-ibm_db2] ci: Add GitHub Actions CI
From: Calvin Buckley <noreply () php ! net>
Date: 2022-02-11 18:45:39
Message-ID: whjC5YfucYKHBivKZYeru2XM78kb5fKiIndzsUWm5I () main ! php ! net
[Download RAW message or body]
Author: Calvin Buckley (NattyNarwhal)
Date: 2022-02-11T14:43:50-04:00
Commit: https://github.com/php/pecl-database-ibm_db2/commit/d73c2805c598c485d4376de0bae22df5910191ee
Raw diff: https://github.com/php/pecl-database-ibm_db2/commit/d73c2805c598c485d4376de0bae22df5910191ee.diff
Add GitHub Actions CI
Changed paths:
A .github/workflows/ci.yml
Diff:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b4ba0ba
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,88 @@
+name: Build and Test
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+jobs:
+ # XXX: macOS
+ ubuntu:
+ strategy:
+ matrix:
+ version: ['7.3', '7.4', '8.0', '8.1']
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Cache DB2 library
+ id: cache-clidriver
+ uses: actions/cache@v2
+ with:
+ path: clidriver
+ key: ${{ runner.os }}-clidriver
+ - name: Install DB2 library
+ if: steps.cache-clidriver.outputs.cache-hit != 'true'
+ run: |
+ wget https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
+ tar xvzf linuxx64_odbc_cli.tar.gz
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{matrix.version}}
+ - name: phpize
+ run: phpize
+ - name: configure
+ run: ./configure --with-IBM_DB2=$PWD/clidriver
+ - name: make
+ run: make V=1
+ # XXX: No tests until DB2 Docker container is set up (see Travis)
+ #- name: Test dbase
+ # run: make test TESTS=tests
+ windows:
+ defaults:
+ run:
+ shell: cmd
+ strategy:
+ matrix:
+ version: ["7.3", "7.4", "8.0", "8.1"]
+ arch: [x64]
+ ts: [ts]
+ runs-on: windows-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Cache DB2 library
+ id: cache-clidriver
+ uses: actions/cache@v2
+ with:
+ path: clidriver
+ key: ${{ runner.os }}-clidriver
+ - name: Install DB2 library
+ if: steps.cache-clidriver.outputs.cache-hit != 'true'
+ shell: pwsh
+ run: |
+ Invoke-WebRequest -Uri \
'https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip' \
-OutFile 'ntx64_odbc_cli.zip' + Expand-Archive 'ntx64_odbc_cli.zip' \
-DestinationPath '.\' + - name: Setup PHP
+ id: setup-php
+ uses: cmb69/setup-php-sdk@v0.2
+ with:
+ version: ${{matrix.version}}
+ arch: ${{matrix.arch}}
+ ts: ${{matrix.ts}}
+ - 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-ibm_db2=%cd%\clidriver \
--with-prefix=${{steps.setup-php.outputs.prefix}} + - name: make
+ run: nmake
+ # XXX: Can we run Docker containers in a Windows runner? That'll be required \
for tests + #- name: test
+ # run: nmake test TESTS=tests
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic