File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
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
Original file line number Diff line number Diff line change 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 }}
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
Original file line number Diff line number Diff line change 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 # ───────────────────────────────────────────────
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments