-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
container: ${{ matrix.container }} | ||
strategy: | ||
matrix: | ||
binary: [aarch64-apple-darwin, x86_64-manylinux2014, x86_64-manylinux2014-cuda117] | ||
binary: [aarch64-apple-darwin, x86_64-manylinux2014, x86_64-manylinux2014-cuda117, x86_64-pc-windows-msvc] | ||
include: | ||
- os: macos-latest | ||
target: aarch64-apple-darwin | ||
|
@@ -40,6 +40,10 @@ jobs: | |
binary: x86_64-manylinux2014-cuda117 | ||
container: sameli/manylinux2014_x86_64_cuda_11.7 | ||
build_args: --features cuda | ||
- os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
binary: x86_64-pc-windows-msvc | ||
build_args: --features cuda | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: true | ||
|
@@ -77,13 +81,32 @@ jobs: | |
~/.cargo/registry | ||
~/.cargo/git | ||
- run: bash ./ci/prepare_build_environment.sh | ||
- name: Prepare build environment for macOS & Linux | ||
run: bash ./ci/prepare_build_environment.sh | ||
if: runner.os != 'Windows' | ||
|
||
- name: Prepare build environment for Windows | ||
run: ./ci/prepare_build_environment.ps1 | ||
if: runner.os == 'Windows' | ||
|
||
- name: Install CUDA toolkit for Windows | ||
uses: Jimver/[email protected] | ||
with: | ||
cuda: '11.7.1' | ||
method: 'network' | ||
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]' | ||
if: runner.os == 'Windows' | ||
|
||
- name: Bulid release binary | ||
run: cargo build ${{ matrix.build_args }} --release --target ${{ matrix.target }} --package tabby | ||
|
||
- name: Rename release binary | ||
- name: Rename release binary for macOS & Linux | ||
run: mv target/${{ matrix.target }}/release/tabby tabby_${{ matrix.binary }} | ||
if: runner.os != 'Windows' | ||
|
||
- name: Rename release binary for Windows | ||
run: mv target/${{ matrix.target }}/release/tabby.exe tabby_${{ matrix.binary }}.exe | ||
if: runner.os == 'Windows' | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
choco install --yes protoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters