Skip to content

Commit 1304e6e

Browse files
ZhiXiao-Linclaude
andcommitted
ci: add Windows (x86_64-pc-windows-msvc) to release and SDK publish workflows
- release.yml: add build-cli-windows job to build a3s-code.exe - publish-node.yml: add x86_64-pc-windows-msvc to build matrix - publish-python.yml: add x86_64-pc-windows-msvc to build matrix - sdk/node/package.json: add x86_64-pc-windows-msvc to napi targets Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent df6e0b3 commit 1304e6e

4 files changed

Lines changed: 38 additions & 1 deletion

File tree

.github/workflows/publish-node.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- host: ubuntu-latest
2626
target: aarch64-unknown-linux-musl
2727
zig: true
28+
- host: windows-latest
29+
target: x86_64-pc-windows-msvc
2830

2931
name: Build ${{ matrix.settings.target }}
3032
runs-on: ${{ matrix.settings.host }}
@@ -51,6 +53,8 @@ jobs:
5153
run: |
5254
if [ "${{ matrix.settings.host }}" = "ubuntu-latest" ]; then
5355
sudo apt-get update && sudo apt-get install -y protobuf-compiler
56+
elif [ "${{ matrix.settings.host }}" = "windows-latest" ]; then
57+
choco install protoc -y
5458
else
5559
brew install protobuf
5660
fi

.github/workflows/publish-python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- host: ubuntu-latest
2424
target: aarch64-unknown-linux-musl
2525
manylinux: musllinux_1_2
26+
- host: windows-latest
27+
target: x86_64-pc-windows-msvc
2628

2729
name: Build ${{ matrix.settings.target }}
2830
runs-on: ${{ matrix.settings.host }}
@@ -53,6 +55,8 @@ jobs:
5355
run: |
5456
if [ "${{ matrix.settings.host }}" = "ubuntu-latest" ]; then
5557
sudo apt-get update && sudo apt-get install -y protobuf-compiler
58+
elif [ "${{ matrix.settings.host }}" = "windows-latest" ]; then
59+
choco install protoc -y
5660
else
5761
brew install protobuf
5862
fi

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,34 @@ jobs:
5959
- name: Tests (Windows)
6060
run: cargo test --workspace --lib
6161

62+
# ───────────────────────────────────────────────
63+
# Build CLI binary for Windows
64+
# ───────────────────────────────────────────────
65+
build-cli-windows:
66+
name: Build CLI (Windows x86_64)
67+
needs: [ci, ci-windows]
68+
runs-on: windows-latest
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Install Rust
73+
uses: dtolnay/rust-toolchain@stable
74+
with:
75+
targets: x86_64-pc-windows-msvc
76+
77+
- name: Install protobuf compiler
78+
run: choco install protoc -y
79+
80+
- name: Build CLI
81+
run: cargo build -p a3s-code-cli --release
82+
83+
- name: Upload artifact
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: a3s-code-windows-x86_64
87+
path: target/release/a3s-code.exe
88+
if-no-files-found: error
89+
6290
# ───────────────────────────────────────────────
6391
# Publish a3s-code-core to crates.io
6492
# ───────────────────────────────────────────────

sdk/node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"aarch64-apple-darwin",
1111
"x86_64-apple-darwin",
1212
"x86_64-unknown-linux-gnu",
13-
"aarch64-unknown-linux-gnu"
13+
"aarch64-unknown-linux-gnu",
14+
"x86_64-pc-windows-msvc"
1415
]
1516
},
1617
"license": "MIT",

0 commit comments

Comments
 (0)