Skip to content

Commit

Permalink
[sidecar] try and zip windows bin using 7z
Browse files Browse the repository at this point in the history
  • Loading branch information
theskcd committed Oct 18, 2023
1 parent 4d1d351 commit efaf5a8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/sidecar-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install 7-Zip
run: choco install 7zip.install

- name: Demo run for 7zip
run: |
./package_windows.sh
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Expand All @@ -34,7 +41,7 @@ jobs:
# Now run the .sh script which does the building and packaging
- name: Build and package
run: |
./package.sh
./package_windows_bin.sh
- name: Upload to GCP bucket generated zip file
env:
Expand Down
7 changes: 7 additions & 0 deletions package_windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pathsToZip="onnxruntime/ qdrant/ models/"

# Destination of the zip file
zipFileDestination="sidecar_test.7z"

# Use 7z command to create the archive
7z a -t7z $zipFileDestination $pathsToZip
9 changes: 9 additions & 0 deletions package_windows_bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cargo build --bin webserver --release

pathsToZip="onnxruntime/ qdrant/ target/release/webserver models/"

# Destination of the zip file
zipFileDestination="sidecar_test.7z"

# Use 7z command to create the archive
7z a -t7z $zipFileDestination $pathsToZip

0 comments on commit efaf5a8

Please sign in to comment.