retry using os libs #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: ['push', 'pull_request'] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| tools: composer:v2 | |
| coverage: xdebug | |
| - name: Install secp256k1_nostr extension for PHP | |
| run: sudo apt install autoconf build-essential git libsecp256k1-dev libsodium-dev libtool php8.4-dev pkgconf | |
| - name: Clone secp256k1_nostr extension for PHP repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: '1ma/secp256k1-nostr-php' | |
| ref: 'v0.1.5' | |
| path: 'build/1ma/secp256k1-nostr-php' | |
| - name: Build secp256k1_nostr extension for PHP | |
| working-directory: ./build/1ma/secp256k1-nostr-php | |
| run: | | |
| make ext | |
| make check | |
| - name: Install secp256k1_nostr extension for PHP | |
| working-directory: ./build/1ma/secp256k1-nostr-php | |
| run: | | |
| sudo make install | |
| echo "extension=secp256k1_nostr.so" | sudo tee -a /etc/php/8.4/cli/conf.d/20-secp256k1_nostr.ini | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| ini-values: extension=secp256k1_nostr.so | |
| - name: Install Dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Tests | |
| run: composer test -- --parallel |