-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add github action to build toolbox Signed-off-by: Travis F. Collins <[email protected]> * Add push to GH release for development builds Signed-off-by: Travis F. Collins <[email protected]> * Add link to GH release for dev build Signed-off-by: Travis F. Collins <[email protected]> --------- Signed-off-by: Travis F. Collins <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Build Toolbox | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Build Toolbox | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Organize Toolbox Dependencies | ||
run: | | ||
make -C ./CI/scripts build | ||
pip3 install -r requirements_doc.txt | ||
make -C ./CI/gen_doc doc_ml | ||
make -C ./CI/scripts add_libad9361 | ||
- name: Set up MATLAB | ||
uses: matlab-actions/setup-matlab@v1 | ||
with: | ||
release: R2022b | ||
- name: Compile Toolbox | ||
uses: matlab-actions/run-command@v1 | ||
with: | ||
command: cd('CI/scripts');genTlbx(1);exit() | ||
|
||
- name: Move generated .mltbx file | ||
run: | | ||
mkdir toolbox | ||
cp *.mltbx toolbox | ||
- name: Save generated .mltbx file | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: TransceiverToolboxInstaller | ||
path: toolbox | ||
|
||
- name: Post development build to GH releases page | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
if: github.ref == 'refs/heads/master' | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Latest Development Build" | ||
files: toolbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters