Skip to content

Commit 24db285

Browse files
committed
split windows x86_64, i686 into separate steps so they can run in parallel
1 parent 3f21226 commit 24db285

File tree

1 file changed

+34
-19
lines changed

1 file changed

+34
-19
lines changed

.github/workflows/release-cli.yml

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ jobs:
7070
name: jcg-aarch64-unknown-linux-gnu
7171
path: jcg-aarch64-unknown-linux-gnu.zip
7272

73-
# Windows MSVC (x86_64 + i686)
74-
build-windows-x86:
75-
name: Build (Windows MSVC)
73+
build-windows-x86_64:
74+
name: Build (Windows MSVC x86_64)
7675
runs-on: windows-latest
7776
steps:
7877
- name: Checkout
@@ -83,34 +82,49 @@ jobs:
8382
with:
8483
toolchain: stable
8584

86-
- name: Add MSVC targets
87-
run: rustup target add x86_64-pc-windows-msvc i686-pc-windows-msvc
85+
- name: Add x86_64 MSVC target
86+
run: rustup target add x86_64-pc-windows-msvc
8887

8988
- name: Build x86_64-pc-windows-msvc
9089
run: cargo build --package jsoncodegen-cli --profile cli --target x86_64-pc-windows-msvc
9190

92-
- name: Build i686-pc-windows-msvc
93-
run: cargo build --package jsoncodegen-cli --profile cli --target i686-pc-windows-msvc
94-
95-
- name: Rename x86_64 Binary
91+
- name: Rename Binary
9692
run: move target/x86_64-pc-windows-msvc/cli/jcg.exe jcg-x86_64-pc-windows-msvc.exe
9793

98-
- name: Rename i686 Binary
99-
run: move target/i686-pc-windows-msvc/cli/jcg.exe jcg-i686-pc-windows-msvc.exe
100-
101-
- name: Zip x86_64 Binary
94+
- name: Zip Binary
10295
run: Compress-Archive -Path jcg-x86_64-pc-windows-msvc.exe -DestinationPath jcg-x86_64-pc-windows-msvc.zip
10396

104-
- name: Zip i686 Binary
105-
run: Compress-Archive -Path jcg-i686-pc-windows-msvc.exe -DestinationPath jcg-i686-pc-windows-msvc.zip
106-
107-
- name: Upload x86_64 Windows artifact
97+
- name: Upload artifact
10898
uses: actions/upload-artifact@v4
10999
with:
110100
name: jcg-x86_64-pc-windows-msvc
111101
path: jcg-x86_64-pc-windows-msvc.zip
112102

113-
- name: Upload i686 Windows artifact
103+
build-windows-i686:
104+
name: Build (Windows MSVC i686)
105+
runs-on: windows-latest
106+
steps:
107+
- name: Checkout
108+
uses: actions/checkout@v4
109+
110+
- name: Install Rust
111+
uses: actions-rs/toolchain@v1
112+
with:
113+
toolchain: stable
114+
115+
- name: Add i686 MSVC target
116+
run: rustup target add i686-pc-windows-msvc
117+
118+
- name: Build i686-pc-windows-msvc
119+
run: cargo build --package jsoncodegen-cli --profile cli --target i686-pc-windows-msvc
120+
121+
- name: Rename Binary
122+
run: move target/i686-pc-windows-msvc/cli/jcg.exe jcg-i686-pc-windows-msvc.exe
123+
124+
- name: Zip Binary
125+
run: Compress-Archive -Path jcg-i686-pc-windows-msvc.exe -DestinationPath jcg-i686-pc-windows-msvc.zip
126+
127+
- name: Upload artifact
114128
uses: actions/upload-artifact@v4
115129
with:
116130
name: jcg-i686-pc-windows-msvc
@@ -197,7 +211,8 @@ jobs:
197211
needs:
198212
- build-linux-x86_64
199213
- build-linux-arm64
200-
- build-windows-x86
214+
- build-windows-x86_64
215+
- build-windows-i686
201216
- build-windows-arm64
202217
- build-macos
203218
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)