File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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
212213chmod +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
You can’t perform that action at this time.
0 commit comments