File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 binary : cocoindex-code-rs
4646 artifact_name : cocoindex-code-rs
4747 archive_ext : tar.gz
48- - runner : windows-latest
49- target : x86_64-pc-windows-msvc
50- os : windows
51- arch : x86_64
52- binary : cocoindex-code-rs.exe
53- artifact_name : cocoindex-code-rs
54- archive_ext : zip
5548
5649 runs-on : ${{ matrix.runner }}
5750
@@ -73,22 +66,13 @@ jobs:
7366 CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : aarch64-linux-gnu-gcc
7467 run : cargo build --release --target ${{ matrix.target }}
7568
76- - name : Package archive (Unix)
77- if : runner.os != 'Windows'
69+ - name : Package archive
7870 run : |
7971 mkdir -p dist
8072 cp target/${{ matrix.target }}/release/${{ matrix.binary }} dist/${{ matrix.binary }}
8173 chmod +x dist/${{ matrix.binary }}
8274 tar -czf ${{ matrix.artifact_name }}-${{ matrix.os }}-${{ matrix.arch }}.${{ matrix.archive_ext }} -C dist ${{ matrix.binary }}
8375
84- - name : Package archive (Windows)
85- if : runner.os == 'Windows'
86- shell : pwsh
87- run : |
88- New-Item -ItemType Directory -Force -Path dist | Out-Null
89- Copy-Item "target/${{ matrix.target }}/release/${{ matrix.binary }}" "dist/${{ matrix.binary }}"
90- Compress-Archive -Path "dist/${{ matrix.binary }}" -DestinationPath "${{ matrix.artifact_name }}-${{ matrix.os }}-${{ matrix.arch }}.${{ matrix.archive_ext }}" -Force
91-
9276 - name : Upload build artifact
9377 uses : actions/upload-artifact@v4
9478 with :
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ INSTALL_DIR=/your/bin/path
3636curl -fsSL https://raw.githubusercontent.com/0xRouteAI/cocoindex-code-rs/main/install.sh | bash
3737```
3838
39+ Prebuilt binaries currently support Linux and macOS only.
40+ Windows native binaries are not supported yet.
41+ On Windows, use WSL and run the Linux install command inside WSL.
42+
3943Install to a custom directory:
4044
4145``` bash
@@ -55,6 +59,8 @@ cocoindex-code-rs --help
5559which cocoindex-code-rs
5660```
5761
62+ If you are using Windows with WSL, run these commands inside your WSL shell rather than PowerShell or ` cmd.exe ` .
63+
5864If ` ~/.local/bin ` is not in your ` PATH ` , add this to your shell profile:
5965
6066``` bash
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ Install the latest release binary with one command:
1616curl -fsSL https://raw.githubusercontent.com/0xRouteAI/cocoindex-code-rs/main/install.sh | bash
1717```
1818
19+ Prebuilt binaries currently support Linux and macOS only.
20+ Windows native binaries are not supported yet.
21+ On Windows, use WSL and run the Linux install command inside WSL.
22+
1923This installs the prebuilt release binary to:
2024
2125``` bash
You can’t perform that action at this time.
0 commit comments