1
1
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
- # https://github.com/sebastianbergmann/phpunit /blob/master/.github/workflows/ci.yml
2
+ # https://github.com/php/pecl-database-dbase /blob/master/.github/workflows/ci.yml
3
3
4
4
on :
5
5
- pull_request
@@ -9,31 +9,19 @@ name: "Continuous Integration"
9
9
10
10
jobs :
11
11
12
- tests :
13
- name : " Build and Tests"
14
-
15
- runs-on : ${{ matrix.os }}
12
+ linux :
13
+ name : " Build and Tests (Linux)"
14
+ runs-on : ubuntu-latest
16
15
17
16
strategy :
18
17
fail-fast : false
19
18
matrix :
20
- os :
21
- - ubuntu-latest
22
- # - windows-latest
23
19
php-version : ["7.2", "7.3", "7.4", "8.0", "8.1"]
24
20
25
21
steps :
26
- - name : " Remove current PHP"
27
- # this could be done smarter, e.g. remove all except matrix.php-version
28
- run : sudo apt-get purge php7.* php8.*
29
-
30
22
- name : " Install liblzma"
31
23
run : sudo apt-get install -y liblzma-dev
32
24
33
- # - name: "Configure git to avoid issues with line endings on Windows"
34
- # if: ${{ runner.os == 'Windows' }}
35
- # run: git config --global core.autocrlf false
36
-
37
25
- name : " Checkout"
38
26
uses : actions/checkout@v2
39
27
@@ -42,13 +30,13 @@ jobs:
42
30
with :
43
31
php-version : ${{ matrix.php-version }}
44
32
45
- - name : " Compile extension (Linux)"
46
- if : ${{ runner.os == 'Linux' }}
33
+ - name : " Compile extension"
47
34
run : |
48
- echo "TEST_PHP_ARGS=-q" >> $GITHUB_ENV
49
- phpize && ./configure && make && sudo make install
35
+ phpize
36
+ ./configure
37
+ make
38
+ sudo make install
50
39
echo "extension=xz.so" >> `php --ini | grep "Loaded Configuration File:" | sed -e "s/.*:\s*//"`
51
40
52
- - name : " Run tests (Linux)"
53
- if : ${{ runner.os == 'Linux' }}
41
+ - name : " Run tests"
54
42
run : make test
0 commit comments