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
6 changes: 4 additions & 2 deletions .circleci/ToolboxDistribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
steps:
- checkout

- matlab/install
- matlab/install:
cache: true

# Runs build to create MEX file and then run tests
- matlab/run-build:
Expand All @@ -48,7 +49,8 @@ jobs:
steps:
- checkout

- matlab/install
- matlab/install:
cache: true

# Downloads all mex files from previous job
- attach_workspace:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ToolboxDistribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Compile, Test and Release toolbox
on:
push:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -77,7 +79,8 @@ jobs:

# The packaged toolbox is distributed as a GitHub release
- name: Create release and upload asset
if: startsWith(github.ref, 'refs/tags/')
run: |
gh release create ${{github.run_id}} --title "Cross-Platform Array Product Toolbox" toolbox.mltbx
gh release create gh-${{github.ref_name}} --title "Cross-Platform Array Product Toolbox" toolbox.mltbx
env:
GH_TOKEN: ${{ github.token }}
16 changes: 15 additions & 1 deletion AzureDevOps/ToolboxDistribution.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
trigger:
branches:
include:
- main
tags:
include:
- 'v*'

pr:
branches:
include:
- main

jobs:
# This job compiles MEX files and runs tests across different platforms
- job: CompileAndTestMex
Expand Down Expand Up @@ -62,10 +75,11 @@ jobs:

# The packaged toolbox is distributed as a GitHub release
- task: GitHubRelease@1
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: advanced-ci-configuration-examples
title: "Cross-Platform Array Product Toolbox"
assets: 'toolbox.mltbx'
tagSource: 'userSpecifiedTag'
tag: '$(Build.BuildNumber)'
tag: 'azure-$(Build.SourceBranchName)'
dependsOn: CompileAndTestMex