Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Jul 5, 2023
1 parent f73d8ac commit bef084d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Benchmark

on:
push

jobs:
benchmark:
strategy:
fail-fast: false
matrix:
PHP_VERSION: [
'4.4',
'5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6',
'7.1', '7.2', '7.3', '7.4',
'8.0', '8.0jit', '8.1', '8.1jit', '8.2', '8.2jit'
]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Setup Docker and Git Repo"
run: |
git clone -b 1.0 --single-branch https://github.com/phpseclib/phpseclib.git
if [[ "${{ matrix.PHP_VERSION }}" == "8"* ]]; then docker pull "quay.io/phpseclib/php${{ matrix.PHP_VERSION }}" && docker image tag "quay.io/phpseclib/php${{ matrix.PHP_VERSION }}" "phpseclib/php${{ matrix.PHP_VERSION }}"; else docker pull "phpseclib/php${{ matrix.PHP_VERSION }}"; fi
- name: "Run Benchmark"
run: |
docker run -v "`pwd`:/opt/src" \
-w "/opt/src" \
"phpseclib/php${{ matrix.PHP_VERSION }}" \
php test.php
timeout-minutes: 10

0 comments on commit bef084d

Please sign in to comment.