Skip to content

Commit 3de3c75

Browse files
committed
:octocat: build update
1 parent 0fcfeb4 commit 3de3c75

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 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
33

44
on:
55
- pull_request
@@ -9,31 +9,19 @@ name: "Continuous Integration"
99

1010
jobs:
1111

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
1615

1716
strategy:
1817
fail-fast: false
1918
matrix:
20-
os:
21-
- ubuntu-latest
22-
# - windows-latest
2319
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1"]
2420

2521
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-
3022
- name: "Install liblzma"
3123
run: sudo apt-get install -y liblzma-dev
3224

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-
3725
- name: "Checkout"
3826
uses: actions/checkout@v2
3927

@@ -42,13 +30,13 @@ jobs:
4230
with:
4331
php-version: ${{ matrix.php-version }}
4432

45-
- name: "Compile extension (Linux)"
46-
if: ${{ runner.os == 'Linux' }}
33+
- name: "Compile extension"
4734
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
5039
echo "extension=xz.so" >> `php --ini | grep "Loaded Configuration File:" | sed -e "s/.*:\s*//"`
5140
52-
- name: "Run tests (Linux)"
53-
if: ${{ runner.os == 'Linux' }}
41+
- name: "Run tests"
5442
run: make test

0 commit comments

Comments
 (0)