-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d5fd38
commit a0b220b
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: build-php | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
jobs: | ||
build-linux: | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-version: ["8.2", "8.3", "8.4"] | ||
name: PHP ${{ matrix.php-version }} build on ${{ matrix.operating-system }} | ||
steps: | ||
- name: Install PHP ${{ matrix.php-version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
- name: Check PHP Version | ||
run: php -v | ||
- uses: actions/checkout@v3 | ||
- name: Configure toolchain | ||
run: | | ||
sudo apt update | ||
cmake --version | ||
python3 --version | ||
pip3 list --outdated | ||
pip3 install -U protobuf grpcio-tools | ||
php --version | ||
- name: Configure project | ||
run: > | ||
cmake -Cconfigs/php-config.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DVIRGIL_PACKAGE_PLATFORM_ARCH=$(uname -m) \ | ||
-DVIRGIL_PACKAGE_LANGUAGE_VERSION=${{ matrix.php-version }} \ | ||
-DCPACK_OUTPUT_FILE_PREFIX=php \ | ||
-DENABLE_CLANGFORMAT=OFF \ | ||
-DED25519_AMD64_RADIX_64_24K=ON -DED25519_REF10=OFF \ | ||
-Bbuild -S. | ||
- name: Build project | ||
run: cmake --build build -- -j$(nproc) | ||
- name: Test project | ||
working-directory: build | ||
run: ctest --verbose | ||
- name: Package project | ||
run: cpack |