Skip to content

Commit c142283

Browse files
committed
ci: refresh cache and print info
1 parent 3046572 commit c142283

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/php_test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
- name: Install dependencies
6464
run: composer update --prefer-dist --no-interaction
6565

66+
- name: Info
67+
run: |
68+
php info.php
69+
php info.php >> $GITHUB_STEP_SUMMARY
70+
6671
- name: Run test suite
6772
env:
6873
DUCKDB_PHP_LIB_DIRECTORY: ${{ inputs.lib-path }}
@@ -114,8 +119,6 @@ jobs:
114119
with:
115120
path: lib_nightly
116121
key: lib_nightly-${{ steps.date.outputs.date }}
117-
restore-keys: |
118-
lib_nightly
119122

120123
- name: Get libraries
121124
if: ${{ steps.libraries-cache.outputs.cache-hit != 'true' }}

info.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
require_once __DIR__ . '/vendor/autoload.php';
3+
use Saturio\DuckDB\Exception\NotSupportedException;
4+
use Saturio\DuckDB\FFI\FindLibrary;
5+
6+
echo php_uname();
7+
echo "\n\n\n";
8+
9+
$os = php_uname('s');
10+
$machine = php_uname('m');
11+
12+
printf("Os: %s, Machine: %s\n\n\n", $os, $machine);
13+
try {
14+
printf("Header: %s\nLib path: %s\n", FindLibrary::headerPath(), FindLibrary::libPath());
15+
} catch (NotSupportedException $e) {
16+
echo $e->getMessage();
17+
}

0 commit comments

Comments
 (0)