File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Test
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - reopened
8+ - synchronize
9+ push :
10+ branches :
11+ - " **"
12+ tags-ignore :
13+ - " *"
14+
15+ env :
16+ NO_INTERACTION : 1
17+
18+ jobs :
19+ build :
20+ runs-on : ${{ matrix.os }}
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ os : [ubuntu-latest]
25+ php-version : ["8.0", "7.4", "7.3"]
26+
27+ steps :
28+ - uses : actions/checkout@v2
29+ - name : Git Commit Hash
30+ id : git_commit
31+ run : |
32+ echo "::set-output name=hash::$(git rev-parse HEAD)"
33+
34+ - name : Cancel Previous Runs
35+ if : contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.0')
36+ uses : styfle/cancel-workflow-action@0.6.0
37+ with :
38+ access_token : ${{ github.token }}
39+
40+ - name : Install Linux Dependencies
41+ if : contains(matrix.os, 'ubuntu')
42+ run : sudo apt-get install -y autoconf build-essential gcc g++ valgrind
43+ - name : Install PHP
44+ id : install_php
45+ uses : shivammathur/setup-php@v2
46+ with :
47+ php-version : ${{ matrix.php-version }}
48+ tools : phpize
49+
50+ - name : Build
51+ run : |
52+ phpize
53+ ./configure --enable-bencode
54+ make -j$(nproc)
55+ - name : Test
56+ run : |
57+ chmod 600 ./.valgrindrc
58+ make test TESTS="-m"
You can’t perform that action at this time.
0 commit comments