1 $ErrorActionPreference = "Stop" 2 3 if ($env:TS -eq '0') { 4 $ts_part = 'nts' 5 } else { 6 $ts_part = 'ts'; 7 } 8 9 if ($env:APPVEYOR_REPO_TAG -eq "true") { 10 $bname = "php_fiber-$env:APPVEYOR_REPO_TAG_NAME-$env:PHP_VER-$ts_part-$env:VC-$env:ARCH" 11 } else { 12 $bname = "php_fiber-$($env:APPVEYOR_REPO_COMMIT.substring(0, 8))-$env:PHP_VER-$ts_part-$env:VC-$env:ARCH" 13 } 14 $zip_bname = "$bname.zip" 15 16 $dir = 'C:\projects\ext-fiber\'; 17 if ($env:ARCH -eq 'x64') { 18 $dir += 'x64\' 19 } 20 $dir += 'Release' 21 if ($env:TS -eq '1') { 22 $dir += '_TS' 23 } 24 25 Compress-Archive "$dir\php_fiber.dll", "$dir\php_fiber.pdb", "C:\projects\ext-fiber\LICENSE" "C:\$zip_bname" 26 Push-AppveyorArtifact "C:\$zip_bname" 27