forked from swoole/swoole-src
-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
thread.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Thread Support Tests
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[thread]')"
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
php: ['8.1-zts', '8.2-zts', '8.3-zts', '8.4-zts']
name: ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
env:
phpts: ts
- name: Show machine information
run: |
date
env
uname -a
ulimit -a
php -v
php --ini
ls -al
pwd
echo "`git log -20 --pretty --oneline`"
echo "`git log -10 --stat --pretty --oneline`"
- name: Run tests
run: |
export SWOOLE_BRANCH=${GITHUB_REF##*/}
export SWOOLE_THREAD=1
export SWOOLE_BUILD_DIR=$(realpath .)
export PHP_VERSION=${{ matrix.php }}
${SWOOLE_BUILD_DIR}/scripts/route.sh