Skip to content

Commit

Permalink
fix(workflow): Add check before copying files
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel A. Cabrera Minagorri <[email protected]>
  • Loading branch information
miguelaeh committed Jan 17, 2024
1 parent d252977 commit a48385a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pipeless-build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ jobs:
- name: Build
run: |
cargo build --all --release --manifest-path pipeless/Cargo.toml &&
mv pipeless/target/release/pipeless-ai pipeless/target/release/pipeless &&
cp pipeless/target/release/libonnxruntime.so pipeless/target/release/libonnxruntime.so.1.16.3 && # This fixes some bugs for macOS
strip pipeless/target/release/pipeless &&
cargo build --all --release --manifest-path pipeless/Cargo.toml
mv pipeless/target/release/pipeless-ai pipeless/target/release/pipeless
strip pipeless/target/release/pipeless
mkdir pipeless-${{ steps.check_version.outputs.new_version }}
if [[ ! -e pipeless/target/release/libonnxruntime.so.1.16.3 ]]; then
# The pipeless binary will be linked to libonnxruntime.so.1.16.3 so it must exist
cp pipeless/target/release/libonnxruntime.so pipeless/target/release/libonnxruntime.so.1.16.3
fi
cp pipeless/target/release/{pipeless,libonnxruntime*} pipeless-${{ steps.check_version.outputs.new_version }}/
tar -czf pipeless-${{ steps.check_version.outputs.new_version }}-${{ env.OS }}-${{ env.ARCH }}.tar.gz pipeless-${{ steps.check_version.outputs.new_version }}
Expand Down

0 comments on commit a48385a

Please sign in to comment.