Build icu-static for x64-windows #45
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: Build icu-static for x64-windows | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * 5" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| build: | |
| name: "Build icu-static with vcpkg" | |
| runs-on: windows-latest | |
| timeout-minutes: 240 | |
| steps: | |
| - name: "Create custom vcpkg triplet (static + v142 toolset)" | |
| run: | | |
| @" | |
| set(VCPKG_TARGET_ARCHITECTURE x64) | |
| set(VCPKG_CRT_LINKAGE static) | |
| set(VCPKG_LIBRARY_LINKAGE static) | |
| set(VCPKG_PLATFORM_TOOLSET v142) | |
| "@ | Set-Content "$env:VCPKG_INSTALLATION_ROOT\triplets\community\x64-windows-static-v142.cmake" | |
| - name: "Vcpkg build" | |
| run: vcpkg install icu:x64-windows-static-v142 --x-install-root=. | |
| - name: "Pack" | |
| run: | | |
| New-Item -ItemType Directory -Force -Path dist | |
| Compress-Archive -Path "x64-windows-static-v142" -DestinationPath "dist\icu-static-windows-x64.zip" | |
| - name: "Deploy to self-hosted OSS" | |
| uses: static-php/upload-s3-action@v1.0.0 | |
| with: | |
| aws_key_id: ${{ secrets.AWS_KEY_ID }} | |
| aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws_bucket: ${{ secrets.AWS_BUCKET }} | |
| source_dir: "dist/" | |
| destination_dir: static-php-cli/deps/icu-static-windows-x64/ | |
| endpoint: ${{ secrets.AWS_ENDPOINT }} |