[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] [pecl-database-pdo_ibm] ci: Basic Windows support
From: Calvin Buckley <noreply () php ! net>
Date: 2022-02-10 19:41:12
Message-ID: paCRYNWp39MTWzEpmVddZeagtsa1z9MuyeW8nNnqI () main ! php ! net
[Download RAW message or body]
Author: Calvin Buckley (NattyNarwhal)
Date: 2022-02-10T15:39:52-04:00
Commit: https://github.com/php/pecl-database-pdo_ibm/commit/6d36ee9c16a30f21c352ec46e17cf84a469c91d3
Raw diff: https://github.com/php/pecl-database-pdo_ibm/commit/6d36ee9c16a30f21c352ec46e17cf84a469c91d3.diff
Basic Windows support
Changed paths:
M .github/workflows/ci.yml
Diff:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f5926a7..55a7f4c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,7 +1,7 @@
name: Build and Test
on: [push, pull_request]
jobs:
- # XXX: macOS, Windows
+ # XXX: macOS
ubuntu:
strategy:
matrix:
@@ -34,3 +34,49 @@ jobs:
# 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-pdo-ibm=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