fixup! wip: windows-release #2
Workflow file for this run
This file contains hidden or 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
| name: Publish Windows Releases | |
| on: | |
| release: | |
| types: [published] | |
| push: # WIP | |
| permissions: {} | |
| env: | |
| PHP_EXT: snappy | |
| BIN_SDK_VER: 2.3.0 | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.vs == 'vs17' && 'windows-2022' || 'windows-2019' }} | |
| env: | |
| # PHP_EXT_VERSION: ${{ github.event.release.tag_name }} | |
| PHP_EXT_VERSION: 0.2.3 # WIP | |
| PHP_VER: ${{ matrix.php }} | |
| VS: ${{ matrix.vs }} | |
| ARCH: ${{ matrix.arch }} | |
| TS: ${{ matrix.ts }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Checkout submodule | |
| run: .\.github\workflows\submodule.ps1 | |
| shell: powershell | |
| - name: Install build command | |
| run: .\.github\workflows\install.ps1 | |
| shell: powershell | |
| - name: Build | |
| run: .\.github\workflows\build.ps1 | |
| shell: powershell | |
| - name: Test | |
| run: .\.github\workflows\test.ps1 | |
| shell: powershell | |
| env: | |
| REPORT_EXIT_STATUS: 1 | |
| NO_INTERACTION: 1 | |
| - name: Archive | |
| run: .\.github\workflows\archive.ps1 | |
| shell: powershell | |
| - name: Store artifact DLL | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }} | |
| path: .\php_${{ env.PHP_EXT }}-${{ env.PHP_EXT_VERSION }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}.zip | |
| overwrite: true | |
| strategy: | |
| matrix: | |
| php: | |
| - '8.4' | |
| - '8.3' | |
| - '8.2' | |
| - '8.1' | |
| arch: | |
| - x64 | |
| - x86 | |
| ts: | |
| - 'nts' | |
| - 'ts' | |
| vs: | |
| - vs16 | |
| - vs17 | |
| exclude: | |
| - php: '8.4' | |
| vs: vs16 | |
| - php: '8.3' | |
| vs: vs17 | |
| - php: '8.2' | |
| vs: vs17 | |
| - php: '8.1' | |
| vs: vs17 | |
| release: | |
| permissions: | |
| contents: write | |
| needs: build | |
| runs-on: ubuntu-latest | |
| env: | |
| # PHP_EXT_VERSION: ${{ github.event.release.tag_name }} | |
| PHP_EXT_VERSION: 0.2.3 # WIP | |
| # if: ${{ github.event_name == 'release' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Get artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| merge-multiple: true | |
| - name: Upload artifacts | |
| # env: | |
| # GITHUB_TOKEN: ${{ inputs.token }} | |
| # run: gh release upload ${{ github.event.release.tag_name }} artifacts/php* --clobber | |
| run: gh release upload ${{ env.PHP_EXT_VERSION }} artifacts/php* --clobber | |
| shell: bash |