Skip to content

Update ed25519.php

Update ed25519.php #52

Workflow file for this run

name: CI
on:
push:
branches: [master]
paths:
- 'src/**'
- 'test/**'
pull_request:
branches: [master]
paths:
- 'src/**'
- 'test/**'
jobs:
build-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: gmp
ini-values: post_max_size=256M, max_execution_time=180
- uses: actions/setup-go@v2
with:
go-version: 1.17.3
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist
- name: Build-ffi
run: cd vendor/gmajor/sr25519-bindings/go && go build -buildmode=c-shared -o ../src/Crypto/sr25519.so .
- name: UnitTest
run: make test
env:
RPC_URL: ${{ secrets.RPC_URL }}