Skip to content

Commit c826cdf

Browse files
authored
RSDK-10637 - fix static windows builds (#149)
1 parent 868e1a4 commit c826cdf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ jobs:
209209
fail-fast: true
210210
matrix:
211211
include:
212-
- target: x86_64-pc-windows-gnu
213-
platform: windows_x86_64
212+
- platform: windows_x86_64
214213
steps:
215214
- name: Checkout Code
216215
uses: actions/checkout@v4
@@ -220,16 +219,15 @@ jobs:
220219
uses: dtolnay/rust-toolchain@stable
221220
with:
222221
toolchain: stable
223-
targets: ${{ matrix.target }}
224222
- name: Setup build directory
225223
run: mkdir builds
226224
- name: Build
227225
run: |
228-
cargo build --release --target=${{ matrix.target }}
226+
cargo build --release
229227
- name: Copy
230228
run: |
231-
cp target/${{ matrix.target }}/release/viam_rust_utils.dll builds/libviam_rust_utils-${{ matrix.platform }}.dll
232-
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.lib
229+
cp target/release/viam_rust_utils.dll builds/libviam_rust_utils-${{ matrix.platform }}.dll
230+
cp target/release/viam_rust_utils.lib builds/viam_rust_utils-${{ matrix.platform }}.lib
233231
- name: Upload artifacts
234232
uses: actions/upload-artifact@v4
235233
with:

0 commit comments

Comments
 (0)