Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
*.mlx binary
*.mltbx binary
*.png binary
*.jpg binary
*.jpg binary
toolbox/bin/**/* binary
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,47 @@ on:
branches: [ main ]

jobs:
build-go:
name: Build Go Sidecar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build Go sidecars
run: |
cd sidecar
mkdir -p ../toolbox/bin/win64
mkdir -p ../toolbox/bin/glnxa64
mkdir -p ../toolbox/bin/maci64
mkdir -p ../toolbox/bin/maca64
GOOS=windows GOARCH=amd64 go build -o ../toolbox/bin/win64/matlab-http-bridge.exe .
GOOS=linux GOARCH=amd64 go build -o ../toolbox/bin/glnxa64/matlab-http-bridge .
GOOS=darwin GOARCH=amd64 go build -o ../toolbox/bin/maci64/matlab-http-bridge .
GOOS=darwin GOARCH=arm64 go build -o ../toolbox/bin/maca64/matlab-http-bridge .
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: matlab-http-bridge-binaries
path: toolbox/bin/

test:
needs: build-go
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Download binaries
uses: actions/download-artifact@v4
with:
name: matlab-http-bridge-binaries
path: toolbox/bin/

- name: Make Linux binary executable
run: chmod +x toolbox/bin/glnxa64/matlab-http-bridge

- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2

Expand Down Expand Up @@ -46,6 +81,12 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Download binaries
uses: actions/download-artifact@v4
with:
name: matlab-http-bridge-binaries
path: toolbox/bin/

- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ release/*.mltbx
# OS generated files
.DS_Store
Thumbs.db

# Ensure toolbox binaries are tracked
!toolbox/bin/
!toolbox/bin/**/*
371 changes: 175 additions & 196 deletions AGENTS.md

Large diffs are not rendered by default.

Loading
Loading