Skip to content

Commit

Permalink
CI: Add build for php8.3 & enable artifact collection (#82)
Browse files Browse the repository at this point in the history
* Support for php8.3 on Windows using php/[email protected]
* Collect the build artifacts (.dll / .so) in the following format:
  * Linux: `yaml_${{ matrix.php-version }}_linux`
  * Windows: `yaml_${{ matrix.php-version }}_win32_${{ matrix.ts }}_${{ matrix.arch }}`
  • Loading branch information
TheStaticTurtle authored Jan 31, 2024
1 parent 5611632 commit ecae192
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ jobs:
-d extension=yaml.so
--show-diff
tests
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "yaml_${{ matrix.php-version }}_linux"
path: .libs/yaml.so

windows:
name: Windows
Expand All @@ -74,6 +79,7 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
arch:
- "x64"
ts:
Expand All @@ -91,7 +97,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PHP
id: setup-php
uses: cmb69/setup-php-sdk@v0.7
uses: php/setup-php-sdk@v0.8
with:
version: "${{ matrix.php-version }}"
arch: "${{ matrix.arch }}"
Expand All @@ -117,3 +123,8 @@ jobs:
run: nmake /D /P
- name: Run tests
run: nmake test TESTS="-n --show-diff tests"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "yaml_${{ matrix.php-version }}_win32_${{ matrix.ts }}_${{ matrix.arch }}"
path: x64/

0 comments on commit ecae192

Please sign in to comment.