diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-unix.yml similarity index 90% rename from .github/workflows/build-linux.yml rename to .github/workflows/build-unix.yml index f165aabfc4..dbb1d749c1 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-unix.yml @@ -26,6 +26,7 @@ jobs: matrix: os: - ubuntu-18.04 + - macos-latest php: - '7.0' @@ -108,6 +109,10 @@ jobs: sudo rm -f /etc/apt/sources.list.d/dotnetdev.list sudo rm -f /etc/apt/sources.list.d/azure*.list + - name: Install System Dependencies (macOS) + if: startsWith(runner.os, 'macOS') + run: brew install re2c + - name: Install System Dependencies (Linux) if: startsWith(runner.os, 'Linux') run: | @@ -162,7 +167,18 @@ jobs: zephir stubs zephir api - - name: Compile Test Project + - name: Compile Test Project (macOS) + if: startsWith(runner.os, 'macOS') + run: | + # These variables are needed to produce non optimized code + CFLAGS="-O0 -g" + CXXFLAGS="-O0 -g" + + # Export variables in the subshell to not shadow global variables + ( export CFLAGS CXXFLAGS; zephir compile ) || false + + - name: Compile Test Project (Linux) + if: startsWith(runner.os, 'Linux') run: | # These variables are needed to produce non optimized code as well as for code coverage LDFLAGS="--coverage" diff --git a/ext/php_test.h b/ext/php_test.h index 484ade7f27..0467d9ae26 100644 --- a/ext/php_test.h +++ b/ext/php_test.h @@ -14,7 +14,7 @@ #define PHP_TEST_VERSION "1.0.0" #define PHP_TEST_EXTNAME "test" #define PHP_TEST_AUTHOR "Phalcon Team and contributors" -#define PHP_TEST_ZEPVERSION "0.12.18-26d47456" +#define PHP_TEST_ZEPVERSION "0.12.18-$Id$" #define PHP_TEST_DESCRIPTION "Description test for
Test Extension." typedef struct _zephir_struct_db {