Skip to content

Commit 01c2d47

Browse files
committed
key tests require ext-secp256k1-nostr
1 parent d39721b commit 01c2d47

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pest.yml

+31
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,40 @@ jobs:
1414
tools: composer:v2
1515
coverage: xdebug
1616

17+
- name: Install secp256k1_nostr extension for PHP
18+
run: sudo apt install autoconf build-essential git libtool pkgconf
19+
20+
- name: Clone secp256k1_nostr extension for PHP repository
21+
uses: actions/checkout@v4
22+
with:
23+
repository: '1ma/secp256k1-nostr-php'
24+
ref: 'v0.1.3'
25+
path: 'build/1ma/secp256k1-nostr-php'
26+
27+
- name: Init secp256k1_nostr extension for PHP
28+
working-directory: ./build/1ma/secp256k1-nostr-php
29+
run: |
30+
git submodule init
31+
git submodule update
32+
33+
- name: Build secp256k1_nostr extension for PHP
34+
working-directory: ./build/1ma/secp256k1-nostr-php
35+
run: |
36+
make secp256k1 ext
37+
make check
38+
39+
- name: Install secp256k1_nostr extension for PHP
40+
working-directory: ./build/1ma/secp256k1-nostr-php
41+
run: sudo make install
42+
1743
- name: Checkout
1844
uses: actions/checkout@v3
1945

46+
- name: Setup PHP
47+
uses: shivammathur/setup-php@v2
48+
with:
49+
ini-values: extension=secp256k1_nostr.so
50+
2051
- name: Install Dependencies
2152
run: composer install --no-interaction --prefer-dist --optimize-autoloader
2253

0 commit comments

Comments
 (0)