-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into java-doc-aggregate
- Loading branch information
Showing
120 changed files
with
1,122 additions
and
895 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
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: Setup MATLAB | ||
description: Setup MATLAB for use in GitHub Actions | ||
runs: | ||
using: "composite" | ||
steps: | ||
# | ||
# MATLAB | ||
# | ||
- name: Setup MATLAB | ||
id: setup-matlab | ||
uses: matlab-actions/setup-matlab@v2 | ||
with: | ||
release: "R2024a" | ||
|
||
- name: Set MATLAB_HOME and MATLAB_VERSION | ||
run: | | ||
# Needed for MATLAB R2024a | ||
sudo apt install -y libgtk2.0-0 | ||
echo "MATLAB_VERSION=R2024a" >> $GITHUB_ENV | ||
echo "MATLAB_HOME=${{ steps.setup-matlab.outputs.matlabroot }}" >> $GITHUB_ENV | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
|
||
- name: Set MATLAB_HOME and MATLAB_VERSION | ||
run: | | ||
echo "MATLAB_VERSION=R2024a" >> $env:GITHUB_ENV | ||
echo "MATLAB_HOME=${{ steps.setup-matlab.outputs.matlabroot }}" >> $env:GITHUB_ENV | ||
shell: powershell | ||
if: runner.os == 'Windows' | ||
|
||
# https://github.com/matlab-actions/run-command/issues/53 | ||
- name: Get run-matlab-command | ||
run: | | ||
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command | ||
chmod +x /usr/local/bin/run-matlab-command | ||
echo "MATLAB_COMMAND=/usr/local/bin/run-matlab-command" >> $GITHUB_ENV | ||
# https://www.mathworks.com/matlabcentral/answers/1907290-how-to-manually-select-the-libstdc-library-to-use-to-resolve-a-version-glibcxx_-not-found | ||
echo "LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6" >> $GITHUB_ENV | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
|
||
# Windows is currently not working. We get an error: "'matlab' executable not found on the system path" | ||
# However, MATLAB is installed and the path is (seemingly) set correctly | ||
- name: Get run-matlab-command | ||
run: | | ||
Invoke-WebRequest https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/win64/run-matlab-command.exe -OutFile C:\Windows\System32\run-matlab-command.exe | ||
echo "MATLAB_COMMAND=C:\Windows\System32\run-matlab-command.exe" >> $env:GITHUB_ENV | ||
shell: powershell | ||
if: runner.os == 'Windows' && matrix.config == 'matlab' |
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
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
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,42 @@ | ||
name: Matlab Analyzer | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["main"] | ||
|
||
jobs: | ||
matlab-analyzer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Dependencies | ||
uses: ./.github/actions/setup-dependencies | ||
with: | ||
use_matlab: true | ||
|
||
- name: Build MATLAB on Ubuntu | ||
uses: ./.github/actions/build | ||
timeout-minutes: 90 | ||
with: | ||
working_directory: "matlab" | ||
build_cpp_and_python: true | ||
|
||
- name: MATLAB Analyzer | ||
run: | | ||
$MATLAB_COMMAND code_analyzer | ||
working-directory: ./matlab/config | ||
shell: bash | ||
|
||
- name: Upload Analyzer Report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: matlab-analyzer-report | ||
path: ./matlab/config/result.json | ||
if-no-files-found: ignore | ||
if: always() |
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
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
Oops, something went wrong.