Skip to content

Commit a5ecc2c

Browse files
authored
Merge pull request #88 from phalcon/feature-macos-ci
Feature macos ci
2 parents a265faf + 030793e commit a5ecc2c

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/main.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ jobs:
2828
- '7.3'
2929
- '7.4'
3030
name:
31-
- 'Ubuntu'
32-
- 'macOS X'
31+
- Ubuntu
32+
- macOS
3333

3434
include:
35-
- name: 'Ubuntu'
35+
- name: Ubuntu
3636
os: ubuntu-latest
3737
ccov: ON
38-
- name: 'macOS X'
39-
os: macOS-latest
40-
ccov: ON
38+
39+
- name: macOS
40+
os: macos-latest
41+
ccov: OFF
4142

4243
name: "${{ matrix.name }}: PHP ${{ matrix.php }}, re2c ${{ matrix.re2c }}"
4344
runs-on: ${{ matrix.os }}
@@ -64,7 +65,7 @@ jobs:
6465
sudo apt-get install --no-install-recommends --quiet --yes lcov gdb
6566
6667
- name: Setup Prerequisites (macOS)
67-
if: runner.os == 'macOS'
68+
if: runner.os == 'macOS' && matrix.ccov == 'ON'
6869
run: |
6970
brew install lcov
7071
sudo xcode-select -switch /Applications/Xcode.app
@@ -87,17 +88,23 @@ jobs:
8788
run: echo '/tmp/core.%e.%p.%t' | sudo tee /proc/sys/kernel/core_pattern
8889

8990
- name: Install re2c ${{ matrix.re2c }}
90-
if: runner.os != 'Windows'
9191
run: .ci/install-re2c.sh
9292

93-
- name: Build extensions (Linux)
94-
if: runner.os != 'Windows'
93+
- name: Build extensions
9594
run: |
9695
phpize
97-
./configure \
98-
--enable-zephir-parser \
99-
--enable-zephir-parser-debug \
100-
--enable-coverage
96+
97+
if [ "${{ matrix.ccov}}" = "ON" ]; then
98+
./configure \
99+
--enable-zephir-parser \
100+
--enable-zephir-parser-debug \
101+
--enable-coverage
102+
else
103+
./configure \
104+
--enable-zephir-parser \
105+
--enable-zephir-parser-debug
106+
fi
107+
101108
make -j$(getconf _NPROCESSORS_ONLN)
102109
103110
- name: Preparing to collect coverage data

0 commit comments

Comments
 (0)