|
3 | 3 | workflow_dispatch: |
4 | 4 | push: |
5 | 5 | jobs: |
6 | | - build-and-run-tests: |
| 6 | + build-and-run-tests-ubuntu: |
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | env: |
9 | 9 | OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install" |
|
14 | 14 | with: |
15 | 15 | path: opentelemetry-matlab |
16 | 16 | - name: Install MATLAB |
17 | | - uses: matlab-actions/setup-matlab@v1 |
| 17 | + uses: matlab-actions/setup-matlab@v2 |
| 18 | + with: |
| 19 | + products: MATLAB_Compiler |
18 | 20 | - name: Build OpenTelemetry-Matlab |
19 | 21 | run: | |
20 | 22 | cd opentelemetry-matlab |
|
30 | 32 | # Add the installation directory to the MATLAB Search Path by |
31 | 33 | # setting the MATLABPATH environment variable. |
32 | 34 | MATLABPATH: ${{ env.OPENTELEMETRY_MATLAB_INSTALL }} |
33 | | - uses: matlab-actions/run-tests@v1 |
| 35 | + uses: matlab-actions/run-tests@v2 |
| 36 | + with: |
| 37 | + select-by-folder: opentelemetry-matlab/test |
| 38 | + build-and-run-tests-windows: |
| 39 | + runs-on: windows-latest |
| 40 | + env: |
| 41 | + OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install" |
| 42 | + steps: |
| 43 | + - name: Download OpenTelemetry-Matlab source |
| 44 | + uses: actions/checkout@v3 |
| 45 | + with: |
| 46 | + path: opentelemetry-matlab |
| 47 | + - name: Install MATLAB |
| 48 | + uses: matlab-actions/setup-matlab@v2 |
| 49 | + with: |
| 50 | + products: MATLAB_Compiler |
| 51 | + - name: Build OpenTelemetry-Matlab |
| 52 | + run: | |
| 53 | + cd opentelemetry-matlab |
| 54 | + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }} |
| 55 | + cmake --build build --config Release --target install |
| 56 | + - name: Run tests |
| 57 | + env: |
| 58 | + # Add the installation directory to the MATLAB Search Path by |
| 59 | + # setting the MATLABPATH environment variable. |
| 60 | + MATLABPATH: ${{ env.OPENTELEMETRY_MATLAB_INSTALL }} |
| 61 | + uses: matlab-actions/run-tests@v2 |
| 62 | + with: |
| 63 | + select-by-folder: opentelemetry-matlab/test |
| 64 | + build-and-run-tests-macos: |
| 65 | + runs-on: macos-latest |
| 66 | + env: |
| 67 | + OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install" |
| 68 | + steps: |
| 69 | + - name: Download OpenTelemetry-Matlab source |
| 70 | + uses: actions/checkout@v3 |
| 71 | + with: |
| 72 | + path: opentelemetry-matlab |
| 73 | + - name: Install MATLAB |
| 74 | + uses: matlab-actions/setup-matlab@v2 |
| 75 | + with: |
| 76 | + products: MATLAB_Compiler |
| 77 | + - name: Build OpenTelemetry-Matlab |
| 78 | + run: | |
| 79 | + cd opentelemetry-matlab |
| 80 | + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWITH_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }} |
| 81 | + cmake --build build --config Release --target install |
| 82 | + - name: Run tests |
| 83 | + env: |
| 84 | + # Add the installation directory to the MATLAB Search Path by |
| 85 | + # setting the MATLABPATH environment variable. |
| 86 | + MATLABPATH: ${{ env.OPENTELEMETRY_MATLAB_INSTALL }} |
| 87 | + uses: matlab-actions/run-tests@v2 |
34 | 88 | with: |
35 | 89 | select-by-folder: opentelemetry-matlab/test |
0 commit comments