Skip to content

Commit fe1f454

Browse files
committed
try arm different runner
1 parent a89ad5b commit fe1f454

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ jobs:
5858
uses: andymckay/[email protected]
5959
if: steps.release_exists.outputs.id != ''
6060

61-
- name: Commit + Push
62-
id: commit
63-
uses: EndBug/[email protected]
64-
with:
65-
default_author: github_actions
66-
message: Bumping version to v${{ steps.which_version.outputs.version }} [skip ci]
61+
#- name: Commit + Push
62+
#id: commit
63+
#uses: EndBug/[email protected]
64+
#with:
65+
#default_author: github_actions
66+
#message: Bumping version to v${{ steps.which_version.outputs.version }} [skip ci]
6767

6868
build_macos:
6969
if: github.repository_owner == 'viamrobotics'
@@ -236,8 +236,43 @@ jobs:
236236
name: builds-${{ matrix.platform }}
237237
path: builds/*
238238

239+
build_windows_arm:
240+
if: github.repository_owner == 'viamrobotics'
241+
needs: [prepare]
242+
runs-on: windows-latest-arm
243+
strategy:
244+
fail-fast: true
245+
matrix:
246+
include:
247+
- target: aarch64-pc-windows-gnullvm
248+
platform: windows_arm64
249+
steps:
250+
- name: Checkout Code
251+
uses: actions/checkout@v4
252+
with:
253+
ref: ${{ needs.prepare.outputs.sha }}
254+
- name: Setup rust toolchain
255+
uses: dtolnay/rust-toolchain@stable
256+
with:
257+
toolchain: stable
258+
targets: ${{ matrix.target }}
259+
- name: Setup build directory
260+
run: mkdir builds
261+
- name: Build
262+
run: |
263+
cargo build --release --target=${{ matrix.target }}
264+
- name: Copy
265+
run: |
266+
cp target/${{ matrix.target }}/release/viam_rust_utils.dll builds/libviam_rust_utils-${{ matrix.platform }}.dll
267+
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.lib
268+
- name: Upload artifacts
269+
uses: actions/upload-artifact@v4
270+
with:
271+
name: builds-${{ matrix.platform }}
272+
path: builds/*
273+
239274
merge:
240-
needs: [build_macos, build_linux, build_windows]
275+
needs: [build_macos, build_linux, build_windows, build_windows_arm]
241276
runs-on: ubuntu-latest
242277
steps:
243278
- name: Merge artifacts

0 commit comments

Comments
 (0)