Skip to content

Commit

Permalink
statistics: gha update
Browse files Browse the repository at this point in the history
  • Loading branch information
mysiar committed Nov 26, 2022
1 parent 86f5b73 commit ec35ac9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
with:
path: ~/build-cache/php
key: ${{ runner.os }}-${{ matrix.php }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}
- name: 'Build PHP'
run: './php-ext-gsl/.github/workflows/test/build-php.sh'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test/build-php-ext-gsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ php --version
cd php-ext-gsl

phpize
./configure
./configure --with-gsl CFLAGS="$CFLAGS -Wno-implicit-function-declaration"
php -dmemory_limit=-1 build/gen_stub.php --force-regeneration
sed -i 's/$user_input = fgets($fp, 10);/$user_input = "s";/g' run-tests.php
make
8 changes: 3 additions & 5 deletions tests/0007.statistics.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ var_dump(gsl_stats_trmean_from_sorted_data(0.51, $data, 1));
// $data = [1, 5, 11, 34, 56];
// var_dump(gsl_stats_mad0($data, 25));

var_dump("gsl_stats_mad");
$data = [1, 5, 11, 34, 56];
var_dump(gsl_stats_mad($data, 25));
// var_dump("gsl_stats_mad");
// $data = [1, 5, 11, 34, 56];
// var_dump(gsl_stats_mad($data, 25));

// var_dump("gsl_stats_Sn0_from_sorted_data");
// $data = [1, 5, 11, 34, 56];
Expand Down Expand Up @@ -367,5 +367,3 @@ string(35) "gsl_stats_quantile_from_sorted_data"
float(1.5996441192502115E+252)
string(33) "gsl_stats_trmean_from_sorted_data"
float(9.4E-323)
string(13) "gsl_stats_mad"
float(1.482602218505602)

0 comments on commit ec35ac9

Please sign in to comment.