Skip to content

Commit 1c65e3b

Browse files
authored
Create build-icu-win.yml
1 parent 8d2b1cf commit 1c65e3b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-icu-win.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build icu-static for x64-windows
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 5"
7+
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
11+
jobs:
12+
build:
13+
name: "Build icu-static with vcpkg"
14+
runs-on: windows-latest
15+
timeout-minutes: 240
16+
steps:
17+
- name: "Vcpkg build"
18+
run: vcpkg install icu:x64-windows-static --x-install-root=.
19+
20+
- name: "Pack"
21+
run: |
22+
New-Item -ItemType Directory -Force -Path dist
23+
Compress-Archive -Path "x64-windows-static" -DestinationPath "dist\icu-static-windows-x64.zip"
24+
25+
- name: "Deploy to self-hosted OSS"
26+
uses: static-php/[email protected]
27+
with:
28+
aws_key_id: ${{ secrets.AWS_KEY_ID }}
29+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
30+
aws_bucket: ${{ secrets.AWS_BUCKET }}
31+
source_dir: "dist/"
32+
destination_dir: static-php-cli/deps/icu-static-windows-x64/
33+
endpoint: ${{ secrets.AWS_ENDPOINT }}

0 commit comments

Comments
 (0)