Skip to content

Commit acbdae0

Browse files
authored
RSDK-4760 include staticlib in release (#76)
1 parent ae22e86 commit acbdae0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ jobs:
106106
run: |
107107
cargo build --release --target=${{ matrix.target }}
108108
- name: Copy
109-
run: cp target/${{ matrix.target }}/release/libviam_rust_utils.dylib builds/libviam_rust_utils-${{ matrix.platform }}.dylib
109+
run: |
110+
cp target/${{ matrix.target }}/release/libviam_rust_utils.dylib builds/libviam_rust_utils-${{ matrix.platform }}.dylib
111+
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.a
110112
- name: Correct install path
111113
run: |
112114
install_name_tool -id "@rpath/libviam_rust_utils.dylib" builds/libviam_rust_utils-${{ matrix.platform }}.dylib
@@ -154,7 +156,9 @@ jobs:
154156
source "$HOME/.cargo/env"
155157
cargo build --release --target=${{ matrix.target }}
156158
- name: Copy
157-
run: cp target/${{ matrix.target }}/release/libviam_rust_utils.so builds/libviam_rust_utils-${{ matrix.platform }}.so
159+
run: |
160+
cp target/${{ matrix.target }}/release/libviam_rust_utils.so builds/libviam_rust_utils-${{ matrix.platform }}.so
161+
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.a
158162
- name: Upload artifacts
159163
uses: actions/upload-artifact@v3
160164
with:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/viamrobotics/rust-utils"
88
authors = ["Viam, inc. <[email protected]>"]
99

1010
[lib]
11-
crate-type = ["cdylib","lib"]
11+
crate-type = ["cdylib","lib","staticlib"]
1212
# TODO(RSDK-4119): Enable doctests after getting autogenerated ones to compile.
1313
doctest = false
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

0 commit comments

Comments
 (0)