Skip to content

Migrate Windows builds to GitHub actions #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor/build.bat → .github/scripts/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if not exist "%SDK_RUNNER%" (
exit /b 3
)

cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\appveyor\build_task.bat
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\.github\scripts\windows\build_task.bat
if %errorlevel% neq 0 exit /b 3

exit /b 0
File renamed without changes.
2 changes: 1 addition & 1 deletion appveyor/test.bat → .github/scripts/windows/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if not exist "%SDK_RUNNER%" (
exit /b 3
)

cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\appveyor\test_task.bat
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\.github\scripts\windows\test_task.bat
if %errorlevel% neq 0 exit /b 3

exit /b 0
12 changes: 6 additions & 6 deletions appveyor/test_task.bat → .github/scripts/windows/test_task.bat
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set

set EXIT_CODE=%errorlevel%

appveyor PushArtifact %TEST_PHP_JUNIT%
@REM appveyor PushArtifact %TEST_PHP_JUNIT%

if %EXIT_CODE% GEQ 1 (
git checkout ext\pgsql\tests\config.inc
git diff > bless_tests.patch
appveyor PushArtifact bless_tests.patch
)
@REM if %EXIT_CODE% GEQ 1 (
@REM git checkout ext\pgsql\tests\config.inc
@REM git diff > bless_tests.patch
@REM appveyor PushArtifact bless_tests.patch
@REM )

exit /b %EXIT_CODE%
140 changes: 86 additions & 54 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,65 +18,97 @@ on:
branches:
- '**'
jobs:
LINUX_X64:
# LINUX_X64:
# strategy:
# fail-fast: false
# matrix:
# include:
# - debug: true
# zts: false
# - debug: false
# zts: true
# name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
# runs-on: ubuntu-20.04
# steps:
# - name: git checkout
# uses: actions/checkout@v2
# - name: Create mssql container
# uses: ./.github/actions/mssql
# - name: apt
# uses: ./.github/actions/apt-x64
# - name: ./configure
# uses: ./.github/actions/configure-x64
# with:
# configurationParameters: >-
# --${{ matrix.debug && 'enable' || 'disable' }}-debug
# --${{ matrix.zts && 'enable' || 'disable' }}-zts
# - name: make
# run: make -j$(/usr/bin/nproc) >/dev/null
# - name: make install
# uses: ./.github/actions/install-linux
# - name: Setup
# uses: ./.github/actions/setup-x64
# - name: Test
# uses: ./.github/actions/test-linux
# - name: Test Tracing JIT
# uses: ./.github/actions/test-linux
# with:
# runTestsParameters: -d zend_extension=opcache.so -d opcache.jit_buffer_size=16M
# MACOS_DEBUG_NTS:
# runs-on: macos-10.15
# steps:
# - name: git checkout
# uses: actions/checkout@v2
# - name: brew
# uses: ./.github/actions/brew
# - name: ./configure
# uses: ./.github/actions/configure-macos
# with:
# configurationParameters: --enable-debug --disable-zts
# - name: make
# run: |-
# export PATH="/usr/local/opt/bison/bin:$PATH"
# make -j$(sysctl -n hw.logicalcpu) >/dev/null
# - name: make install
# run: sudo make install
# - name: Test
# uses: ./.github/actions/test-macos
# - name: Test Tracing JIT
# uses: ./.github/actions/test-macos
# with:
# runTestsParameters: >-
# -d zend_extension=opcache.so
# -d opcache.protect_memory=1
# -d opcache.jit_buffer_size=16M
WINDOWS_X64:
strategy:
fail-fast: false
matrix:
include:
- debug: true
zts: false
- debug: false
zts: true
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
runs-on: ubuntu-20.04
- zts: false
opcache: false
- zts: true
opcache: true
intrinsics: AVX
runs-on: windows-2019
env:
PHP_BUILD_CACHE_BASE_DIR: c:\build-cache
PHP_BUILD_OBJ_DIR: c:\obj
PHP_BUILD_CACHE_SDK_DIR: c:\build-cache\sdk
PHP_BUILD_SDK_BRANCH: php-sdk-2.2.0
PHP_BUILD_CRT: vs16
THREAD_SAFE: ${{ matrix.zts && 1 || 0 }}
OPCACHE: ${{ matrix.opcache && 1 || 0 }}
PARALLEL: -j2
INTRINSICS: ${{ matrix.intrinsics }}
PLATFORM: x64
APPVEYOR: true
APPVEYOR_BUILD_FOLDER: ${{ github.workspace }}
APPVEYOR_REPO_BRANCH: ${{ github.base_ref }}
steps:
- name: git checkout
uses: actions/checkout@v2
- name: Create mssql container
uses: ./.github/actions/mssql
- name: apt
uses: ./.github/actions/apt-x64
- name: ./configure
uses: ./.github/actions/configure-x64
with:
configurationParameters: >-
--${{ matrix.debug && 'enable' || 'disable' }}-debug
--${{ matrix.zts && 'enable' || 'disable' }}-zts
- name: make
run: make -j$(/usr/bin/nproc) >/dev/null
- name: make install
uses: ./.github/actions/install-linux
- name: Setup
uses: ./.github/actions/setup-x64
- name: Build
run: .\.github\scripts\windows\build.bat
- name: Test
uses: ./.github/actions/test-linux
- name: Test Tracing JIT
uses: ./.github/actions/test-linux
with:
runTestsParameters: -d zend_extension=opcache.so -d opcache.jit_buffer_size=16M
MACOS_DEBUG_NTS:
runs-on: macos-10.15
steps:
- name: git checkout
uses: actions/checkout@v2
- name: brew
uses: ./.github/actions/brew
- name: ./configure
uses: ./.github/actions/configure-macos
with:
configurationParameters: --enable-debug --disable-zts
- name: make
run: |-
export PATH="/usr/local/opt/bison/bin:$PATH"
make -j$(sysctl -n hw.logicalcpu) >/dev/null
- name: make install
run: sudo make install
- name: Test
uses: ./.github/actions/test-macos
- name: Test Tracing JIT
uses: ./.github/actions/test-macos
with:
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
run: .\.github\scripts\windows\test.bat