Skip to content

Commit 88edff6

Browse files
committed
--middle actions
1 parent 60158b0 commit 88edff6

1 file changed

Lines changed: 64 additions & 62 deletions

File tree

.github/workflows/build-icu4c.yml

Lines changed: 64 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -13,68 +13,7 @@ env:
1313
ICU4C_VERREL: "77-1"
1414

1515
jobs:
16-
windows-msvc-2019:
17-
runs-on: windows-2019
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
include:
22-
- arch: 'x64'
23-
plat: 'x64'
24-
win_ver: 'Win64'
25-
- arch: 'x86'
26-
plat: 'Win32'
27-
win_ver: 'Win32'
28-
steps:
29-
- uses: actions/checkout@v4
30-
31-
- name: Install or Download Dependencies
32-
run: |
33-
mkdir deps
34-
cd deps && mkdir mingw64 && cd ..
35-
curl -L https://github.com/unicode-org/icu/releases/download/release-${{ env.ICU4C_VERREL }}/icu4c-${{ env.ICU4C_VERSION }}-src.tgz -o icu4c-${{ env.ICU4C_VERSION }}.tgz
36-
dir
37-
tar -xf icu4c-${{ env.ICU4C_VERSION }}.tgz
38-
dir
39-
40-
- name: Set up MSBuild
41-
uses: microsoft/setup-msbuild@v2
42-
43-
- name: Build Solution
44-
run: msbuild icu/source/allinone/allinone.sln /p:Configuration=Release /p:Platform=${{ matrix.plat }} /p:SkipUWP=true
45-
- name: "Run PowerShell: Distrelease script (${{ matrix.arch }})"
46-
shell: pwsh
47-
run: |
48-
cd ./icu/
49-
./packaging/distrelease.ps1 -arch ${{ matrix.arch }}
50-
- name: Extract ICU version and rename zip file
51-
id: set-zip-name
52-
run: |
53-
$newZipName = "icu4c-${{ env.ICU4C_VERSION }}-msvc2019-${{ matrix.arch }}"
54-
Write-Host "New Zip Name: $newZipName"
55-
# Rename the existing zip file
56-
cd icu\source\dist\ && ls -l .
57-
Rename-Item -Path icu-windows.zip -NewName "${newZipName}.zip"
58-
ls -l .
59-
60-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
61-
with:
62-
github_token: ${{ secrets.GITHUB_TOKEN }}
63-
tag: icu4c-${{ env.ICU4C_VERSION }}
64-
deleteOnlyFromDrafts: false
65-
66-
- name: Upload icu4c-${{ env.ICU4C_VERSION }}
67-
uses: softprops/action-gh-release@v2
68-
with:
69-
tag_name: icu4c-${{ env.ICU4C_VERSION }}
70-
name: Latest build of icu4c-${{ env.ICU4C_VERSION }}
71-
draft: false
72-
prerelease: false
73-
files: |
74-
./icu/source/dist/icu4c-${{ env.ICU4C_VERSION }}-*.zip
75-
7616
build_with_mingw-gcc14:
77-
needs: windows-msvc-2019
7817
runs-on: windows-2019
7918
defaults:
8019
run:
@@ -153,6 +92,12 @@ jobs:
15392
rm -rf icu
15493
rm -rf $WSP_ROOT/icu4c-${{ env.ICU4C_VERSION }}-mingw64
15594
95+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
96+
with:
97+
github_token: ${{ secrets.GITHUB_TOKEN }}
98+
tag: icu4c-${{ env.ICU4C_VERSION }}
99+
deleteOnlyFromDrafts: false
100+
156101
- name: Setup msvc2019 x64 Environment
157102
uses: ilammy/msvc-dev-cmd@v1
158103

@@ -180,6 +125,63 @@ jobs:
180125
gcc: ${{ steps.vars.outputs.gcc_exe_info }}
181126
draft: false
182127
prerelease: false
183-
make_latest: true
184128
files: |
185129
./icu4c-${{ env.ICU4C_VERSION }}-*.7z
130+
131+
# Windows MSVC distribution release
132+
build_with_windows-msvc-2019:
133+
needs: build_with_mingw-gcc14
134+
runs-on: windows-2019
135+
strategy:
136+
fail-fast: false
137+
matrix:
138+
include:
139+
- arch: 'x64'
140+
plat: 'x64'
141+
win_ver: 'Win64'
142+
- arch: 'x86'
143+
plat: 'Win32'
144+
win_ver: 'Win32'
145+
steps:
146+
- uses: actions/checkout@v4
147+
148+
- name: Install or Download Dependencies
149+
run: |
150+
mkdir deps
151+
cd deps && mkdir mingw64 && cd ..
152+
curl -L https://github.com/unicode-org/icu/releases/download/release-${{ env.ICU4C_VERREL }}/icu4c-${{ env.ICU4C_VERSION }}-src.tgz -o icu4c-${{ env.ICU4C_VERSION }}.tgz
153+
dir
154+
tar -xf icu4c-${{ env.ICU4C_VERSION }}.tgz
155+
dir
156+
157+
- name: Set up MSBuild
158+
uses: microsoft/setup-msbuild@v2
159+
160+
- name: Build Solution
161+
run: msbuild icu/source/allinone/allinone.sln /p:Configuration=Release /p:Platform=${{ matrix.plat }} /p:SkipUWP=true
162+
- name: "Run PowerShell: Distrelease script (${{ matrix.arch }})"
163+
shell: pwsh
164+
run: |
165+
cd ./icu/
166+
./packaging/distrelease.ps1 -arch ${{ matrix.arch }}
167+
168+
- name: Extract ICU version and rename zip file
169+
id: set-zip-name
170+
run: |
171+
$newZipName = "icu4c-${{ env.ICU4C_VERSION }}-msvc2019-${{ matrix.arch }}"
172+
Write-Host "New Zip Name: $newZipName"
173+
# Rename the existing zip file
174+
cd icu\source\dist\ && ls -l .
175+
Rename-Item -Path icu-windows.zip -NewName "${newZipName}.zip"
176+
ls -l .
177+
178+
- name: Upload icu4c-${{ env.ICU4C_VERSION }}
179+
uses: softprops/action-gh-release@v2
180+
with:
181+
tag_name: icu4c-${{ env.ICU4C_VERSION }}
182+
name: Latest build of icu4c-${{ env.ICU4C_VERSION }}
183+
draft: false
184+
prerelease: false
185+
make_latest: true
186+
files: |
187+
./icu/source/dist/icu4c-${{ env.ICU4C_VERSION }}-*.zip

0 commit comments

Comments
 (0)