Skip to content
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

set windows action PHP SDK Github ENV variables #447

Closed
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
32 changes: 31 additions & 1 deletion .github/workflows/build-windows-x86_64.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI on x86_64 Windows

on:
push:
pull_request:
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -34,9 +36,37 @@ env:
jobs:
build:
name: build ${{ inputs.version }} on Windows x86_64
runs-on: windows-latest
# runs-on: windows-latest
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
# setup Developer Command Prompt for Microsoft Visual C++
- uses: ilammy/[email protected]
with:
arch: amd64

- name: "Install PHP for official runners"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
tools: composer:v2
php-version: 8.2
ini-values: memory_limit=-1

- name: Set PHP SDK Github ENV variables
run: |
echo "PHP_SDK_ARCH=x64" >> $Env:GITHUB_ENV
echo "PHP_SDK_BIN_PATH=D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools\bin" >> $Env:GITHUB_ENV
echo "PHP_SDK_MSYS2_PATH=D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools\msys2\usr\bin" >> $Env:GITHUB_ENV
echo "PHP_SDK_OS_ARCH=x64" >> $Env:GITHUB_ENV
echo "PHP_SDK_PHP_CMD=D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools\bin\php\do_php.bat" >> $Env:GITHUB_ENV
echo "PHP_SDK_ROOT_PATH=D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools" >> $Env:GITHUB_ENV
echo "PHP_SDK_VC_DIR=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC" >> $Env:GITHUB_ENV
echo "PHP_SDK_VC_TOOLSET_VER=$env:VCToolsVersion" >> $Env:GITHUB_ENV
echo "PHP_SDK_VS=vs17" >> $Env:GITHUB_ENV
echo "PHP_SDK_VS_NUM=17" >> $Env:GITHUB_ENV
echo "PHP_SDK_VS_SHELL_CMD=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat amd64" >> $Env:GITHUB_ENV
echo "PATH=D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools\bin;D:\a\static-php-cli\static-php-cli\php-sdk-binary-tools\msys2\usr\bin;%PATH%" >> $Env:GITHUB_ENV

# Cache composer dependencies
- id: cache-composer-deps
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
vendor/bin/phpunit tests/ --no-coverage

build:
if: 0
name: "Build PHP Test (PHP ${{ matrix.php }} ${{ matrix.os }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 120
Expand Down
Loading