Skip to content

Commit 564a681

Browse files
committed
task: test pg-query extension only on linux on ci/cd
1 parent cd977e3 commit 564a681

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/job-pg-query-extension.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ on:
99
jobs:
1010
build:
1111
name: Build and Test Extension
12-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest, macos-latest]
1716
php: ['8.2', '8.3', '8.4']
1817

1918
steps:
@@ -28,20 +27,11 @@ jobs:
2827
extensions: ':psr, bcmath, dom, hash, json, mbstring, xml, xmlwriter, xmlreader, zlib, protobuf'
2928
tools: 'composer:v2, phpize, php-config'
3029

31-
- name: Install build dependencies (Linux)
32-
if: runner.os == 'Linux'
30+
- name: Install build dependencies
3331
run: |
3432
sudo apt-get update
3533
sudo apt-get install -y build-essential autoconf automake libtool protobuf-compiler libprotobuf-c-dev
3634
37-
- name: Install build dependencies (macOS)
38-
if: runner.os == 'macOS'
39-
run: |
40-
brew install autoconf automake libtool protobuf protobuf-c
41-
echo "LDFLAGS=-L$(brew --prefix protobuf-c)/lib" >> $GITHUB_ENV
42-
echo "CPPFLAGS=-I$(brew --prefix protobuf-c)/include" >> $GITHUB_ENV
43-
echo "PKG_CONFIG_PATH=$(brew --prefix protobuf-c)/lib/pkgconfig" >> $GITHUB_ENV
44-
4535
- name: Build libpg_query and extension
4636
working-directory: src/extension/pg-query-ext
4737
run: |
@@ -64,7 +54,6 @@ jobs:
6454
run: composer test:lib:pg-query
6555

6656
- name: Upload to Codecov
67-
if: ${{ matrix.os == 'ubuntu-latest' }}
6857
uses: ./.github/actions/codecov-report
6958
with:
7059
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)