Skip to content

Commit

Permalink
Extend PHP builds to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySeroshtan committed Apr 26, 2024
1 parent aa7cdea commit 96a2810
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ on:
tags:
- "*"
jobs:
build-linux:
runs-on: ${{ matrix.operating-system }}
build-php:
runs-on: ${{ matrix.os }}
strategy:
matrix:
operating-system: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
php-version: ["8.2", "8.3", "8.4"]
name: PHP ${{ matrix.php-version }} build on ${{ matrix.operating-system }}
include:
- arch: x86_64
optimizations: -DED25519_REF10=OFF -DED25519_AMD64_RADIX_64_24K=ON
- os: macos-latest
arch: arm64
optimizations: -DED25519_REF10=ON
name: PHP ${{ matrix.php-version }} build on ${{ matrix.os }}
steps:
- name: Install PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
Expand All @@ -33,11 +39,11 @@ jobs:
run: >
cmake -Cconfigs/php-config.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DVIRGIL_PACKAGE_PLATFORM_ARCH=$(uname -m) \
-DVIRGIL_PACKAGE_PLATFORM_ARCH=${{ matrix.arch }} \
-DVIRGIL_PACKAGE_LANGUAGE_VERSION=${{ matrix.php-version }} \
-DCPACK_OUTPUT_FILE_PREFIX=php \
-DENABLE_CLANGFORMAT=OFF \
-DED25519_AMD64_RADIX_64_24K=ON -DED25519_REF10=OFF \
${{ matrix.optimizations }} \
-Bbuild -S.
- name: Build project
run: cmake --build build -- -j$(nproc)
Expand Down

0 comments on commit 96a2810

Please sign in to comment.