Skip to content

Commit 88ba3d6

Browse files
authored
RSDK-5299 build for macos (viamrobotics#3128)
1 parent 2bd2860 commit 88ba3d6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/macos.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: MacOS
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.event == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
14+
- uses: actions/setup-go@v4
15+
with:
16+
go-version: '1.19.x'
17+
- name: brew
18+
run: |
19+
brew tap viamrobotics/brews
20+
brew install pkg-config
21+
brew install nlopt-static
22+
brew install x264
23+
brew install jpeg-turbo
24+
brew install ffmpeg
25+
brew install tensorflowlite # Needs to be last
26+
- name: build
27+
run: go build ./web/cmd/server
28+
- uses: actions/upload-artifact@v3
29+
with:
30+
name: viam-server-macos
31+
path: server
32+
retention-days: 5

.github/workflows/pullrequest-trusted.yml

+3
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,8 @@ jobs:
7575
secrets:
7676
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
7777

78+
macos:
79+
uses: viamrobotics/rdk/.github/workflows/macos.yml@main
80+
7881
license_finder:
7982
uses: viamrobotics/rdk/.github/workflows/license_finder.yml@main

0 commit comments

Comments
 (0)