@@ -71,11 +71,11 @@ jobs:
7171 - name : Create Pecl Package (PHP 8)
7272 id : pecl_create
7373 run : |
74- cp build/phalcon/safe/ config.w32 config.w32
75- cp build/phalcon/safe/ phalcon.zep.c phalcon.zep.c
76- cp build/phalcon/safe/ config.m4 config.m4
77- cp build/phalcon/safe/ php_phalcon.h php_phalcon.h
78- cp build/phalcon/safe/ phalcon.zep.h phalcon.zep.h
74+ cp build/phalcon/config.w32 config.w32
75+ cp build/phalcon/phalcon.zep.c phalcon.zep.c
76+ cp build/phalcon/config.m4 config.m4
77+ cp build/phalcon/php_phalcon.h php_phalcon.h
78+ cp build/phalcon/phalcon.zep.h phalcon.zep.h
7979 pecl package
8080 phalcon_package="`ls | grep phalcon-*tgz`"
8181 mv $phalcon_package phalcon-pecl.tgz
9292 build-and-test-linux :
9393 # To prevent build a particular commit use
9494 # git commit -m "......... [ci skip]"
95- if : " !contains(github.event.head_commit.message, 'ci skip')"
95+ # git commit -m "......... [linux skip] - to skip only linux builds"
96+ if : " !contains(github.event.head_commit.message, '[linux skip]') || !contains(github.event.head_commit.message, 'ci skip')"
9697
9798 needs : generate
9899 services :
@@ -256,7 +257,8 @@ jobs:
256257 build-and-test-macos :
257258 # To prevent build a particular commit use
258259 # git commit -m "......... [ci skip]"
259- if : " !contains(github.event.head_commit.message, 'ci skip')"
260+ # git commit -m "......... [mac skip] - to skip only macOS builds"
261+ if : " !contains(github.event.head_commit.message, '[mac skip]') || !contains(github.event.head_commit.message, 'ci skip')"
260262
261263 needs : generate
262264 runs-on : ${{ matrix.operating-system }}
@@ -345,7 +347,8 @@ jobs:
345347 build-and-test-windows :
346348 # To prevent build a particular commit use
347349 # git commit -m "......... [ci skip]"
348- if : " !contains(github.event.head_commit.message, 'ci skip')"
350+ # git commit -m "......... [win skip] - to skip only Windows builds"
351+ if : " !contains(github.event.head_commit.message, '[win skip]') || !contains(github.event.head_commit.message, 'ci skip')"
349352
350353 name : PHP ${{ matrix.php-versions }} (${{ matrix.arch }}-${{ matrix.ts }}) Test on ${{ matrix.operating-system }}
351354 needs : generate
@@ -415,7 +418,7 @@ jobs:
415418 Write-Output "PACKAGE_PREFIX=phalcon" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
416419 Write-Output "EXTENSION_NAME=phalcon" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
417420 Write-Output "EXTENSION_FILE=php_phalcon.dll" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
418- Write-Output "PHALCON_VERSION=5.0.0alpha4 " | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
421+ Write-Output "PHALCON_VERSION=5.0.0alpha5 " | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
419422 Write-Output "PHPTS=${{ matrix.ts }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
420423 If ("${{ matrix.ts }}" -eq "nts") {
421424 Write-Output "BUILD_TYPE=nts-${{ matrix.build_type }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@@ -539,22 +542,22 @@ jobs:
539542 run : |
540543 Get-PhpExtension "${env:RELEASE_DLL_PATH}"
541544
542- - name : Upload Artifact
543- uses : actions/upload-artifact@v2
544- with :
545- name : ${{ env.RELEASE_ZIPBALL }}.zip
546- path : ${{ env.RELEASE_DLL_PATH }}
545+ - name : Prepare Build Artifact
546+ run : |
547+ $Destination = ".\build-artifacts"
548+ if (-not (Test-Path -Path $Destination -PathType Container)) {
549+ New-Item $Destination -ItemType Directory | Out-Null
550+ }
551+ Copy-Item -Path "${env:RELEASE_DLL_PATH}" -Destination $Destination
552+ Copy-Item -Path ".\3rdparty\licenses\*.txt" -Destination $Destination
553+ Set-Location $Destination
554+ & 7z a "${{ env.RELEASE_ZIPBALL }}.zip" *
547555
548- - name : Upload Licenses
556+ - name : Upload Artifact
549557 uses : actions/upload-artifact@v2
550558 with :
551559 name : ${{ env.RELEASE_ZIPBALL }}.zip
552- path : |
553- ${{ github.workspace }}\3rdparty\licenses\LICENSE-ATLAS.txt
554- ${{ github.workspace }}\3rdparty\licenses\LICENSE-AURA.txt
555- ${{ github.workspace }}\3rdparty\licenses\LICENSE-DIACTOROS.txt
556- ${{ github.workspace }}\3rdparty\licenses\LICENSE-PHP.txt
557- ${{ github.workspace }}\3rdparty\licenses\LICENSE-ZEND.txt
560+ path : .\build-artifacts\phalcon*.zip
558561
559562 - name : Enable Extensions
560563 run : |
@@ -605,32 +608,38 @@ jobs:
605608 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
606609
607610 needs : [generate, build-and-test-linux, build-and-test-macos, build-and-test-windows]
608- name : Create release
611+ name : Create Release
609612 runs-on : ubuntu-20.04
610613
611614 steps :
612- - name : Checkout Code
613- uses : actions/checkout@v2
614- with :
615- fetch-depth : 1
615+ - uses : actions/checkout@v2
616616
617617 - name : Get the release version
618618 id : get-version
619619 run : |
620620 echo ::set-output name=version::${GITHUB_REF#refs/tags/}
621- echo ::set-output name=release_body::$(.ci/release-notes.sh CHANGELOG-5.0.md)
622621
623622 - name : Download Phalcon build artifacts
624623 id : download
625624 uses : actions/download-artifact@v2
625+ with :
626+ path : ./build-artifacts
627+
628+ - name : Prepare Release assets
629+ run : |
630+ mkdir -p ./build-artifacts/release
631+ find ./build-artifacts -type f -name phalcon*.zip -exec cp {} ./build-artifacts/release/ ";"
632+ find ./build-artifacts -type f -name phalcon*.tgz -exec cp {} ./build-artifacts/release/ ";"
633+ echo "-- Creating Release Notes"
634+ GITHUB_ACTIONS=false ./.ci/release-notes.sh ./CHANGELOG-5.0.md > ./build-artifacts/release/release-notes.md
626635
627636 - name : Create Release
628637 uses : ncipollo/release-action@v1
629638 with :
630639 token : ${{ secrets.GITHUB_TOKEN }}
631640 name : ${{ steps.get-version.outputs.version }}
632641 tag : ${{ steps.get-version.outputs.version }}
633- body : ${{ steps.get-version.outputs.release_body }}
642+ bodyFile : " ./build-artifacts/release/release-notes.md "
634643 allowUpdates : true
635- artifacts : " ${{steps.download.outputs.download-path}}/phalcon_ *.zip,${{steps.download.outputs.download-path}}/phalcon-pecl/* "
644+ artifacts : " ./build-artifacts/release/ *.zip,./build-artifacts/release/*.tgz "
636645 artifactContentType : application/octet-stream
0 commit comments