Skip to content

Commit 90f2479

Browse files
committed
feat: add Windows x64 build to release workflow
- Added windows-latest with x86_64-pc-windows-msvc target to matrix - Added Windows-specific binary rename step (no chmod needed) - Updated README with Windows download instructions
1 parent 4a5c0a5 commit 90f2479

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
target: aarch64-apple-darwin
3232
artifact_name: database-replicator
3333
asset_name: database-replicator-macos-arm64-binary
34+
- os: windows-latest
35+
target: x86_64-pc-windows-msvc
36+
artifact_name: database-replicator.exe
37+
asset_name: database-replicator-windows-x64.exe
3438
steps:
3539
- name: Checkout code
3640
uses: actions/checkout@v4
@@ -51,11 +55,18 @@ jobs:
5155
if: matrix.os == 'macos-latest'
5256
run: strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
5357

54-
- name: Rename binary
58+
- name: Rename binary (Unix)
59+
if: matrix.os != 'windows-latest'
5560
run: |
5661
cp target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ${{ matrix.asset_name }}
5762
chmod +x ${{ matrix.asset_name }}
5863
64+
- name: Rename binary (Windows)
65+
if: matrix.os == 'windows-latest'
66+
run: |
67+
copy target\${{ matrix.target }}\release\${{ matrix.artifact_name }} ${{ matrix.asset_name }}
68+
shell: cmd
69+
5970
- name: Upload artifact
6071
uses: actions/upload-artifact@v4
6172
with:

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,21 @@ Download the latest release for your platform from [GitHub Releases](https://git
205205
- **Linux (x64)**: `database-replicator-linux-x64-binary`
206206
- **macOS (Intel)**: `database-replicator-macos-x64-binary`
207207
- **macOS (Apple Silicon)**: `database-replicator-macos-arm64-binary`
208+
- **Windows (x64)**: `database-replicator-windows-x64.exe`
208209

209-
Make the binary executable:
210+
Make the binary executable (Linux/macOS):
210211

211212
```bash
212213
chmod +x database-replicator-*-binary
213214
./database-replicator-*-binary --help
214215
```
215216

217+
On Windows, run directly:
218+
219+
```cmd
220+
database-replicator-windows-x64.exe --help
221+
```
222+
216223
### Install from crates.io
217224

218225
```bash

0 commit comments

Comments
 (0)