From 84424899d6ad52e1f48e7ecdb82a786756c8bf48 Mon Sep 17 00:00:00 2001 From: andrew-platt Date: Tue, 5 Mar 2024 15:13:35 -0700 Subject: [PATCH 1/2] GH actions: update matlab-actions version update matlab-actions from v1 to v2 node.js 16 is getting deprecated. Matlab-actions v2 uses node.js 20 --- .github/workflows/automated-dev-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automated-dev-tests.yml b/.github/workflows/automated-dev-tests.yml index 17760a5dfa..00b2d8c70a 100644 --- a/.github/workflows/automated-dev-tests.yml +++ b/.github/workflows/automated-dev-tests.yml @@ -45,7 +45,7 @@ jobs: python-version: '3.11' cache: 'pip' - name: Set up MATLAB - uses: matlab-actions/setup-matlab@v1 + uses: matlab-actions/setup-matlab@v2 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -180,7 +180,7 @@ jobs: python-version: '3.11' cache: 'pip' - name: Set up MATLAB - uses: matlab-actions/setup-matlab@v1 + uses: matlab-actions/setup-matlab@v2 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -634,7 +634,7 @@ jobs: sudo apt-get update -y sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev libopenblas-dev libopenblas-openmp-dev - name: Set up MATLAB - uses: matlab-actions/setup-matlab@v1 + uses: matlab-actions/setup-matlab@v2 - name: Build FAST_SFunc working-directory: ${{runner.workspace}}/openfast/build run: | @@ -643,7 +643,7 @@ jobs: ${GITHUB_WORKSPACE} cmake --build . --target FAST_SFunc - name: Run MATLAB tests and generate artifacts - uses: matlab-actions/run-tests@v1 + uses: matlab-actions/run-tests@v2 with: source-folder: ${{runner.workspace}}/openfast/build/glue-codes/simulink; ${{runner.workspace}}/openfast/glue-codes/simulink/examples test-results-junit: test-results/results.xml From 57f3649571819fd4348544fd652e9b841ba771bb Mon Sep 17 00:00:00 2001 From: andrew-platt Date: Tue, 5 Mar 2024 15:40:34 -0700 Subject: [PATCH 2/2] GH actions: add product:Simulink to recipe --- .github/workflows/automated-dev-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/automated-dev-tests.yml b/.github/workflows/automated-dev-tests.yml index 00b2d8c70a..1ad047e16d 100644 --- a/.github/workflows/automated-dev-tests.yml +++ b/.github/workflows/automated-dev-tests.yml @@ -46,6 +46,8 @@ jobs: cache: 'pip' - name: Set up MATLAB uses: matlab-actions/setup-matlab@v2 + with: + products: Simulink - name: Install dependencies run: | python -m pip install --upgrade pip @@ -181,6 +183,8 @@ jobs: cache: 'pip' - name: Set up MATLAB uses: matlab-actions/setup-matlab@v2 + with: + products: Simulink - name: Install dependencies run: | python -m pip install --upgrade pip @@ -635,6 +639,8 @@ jobs: sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev libopenblas-dev libopenblas-openmp-dev - name: Set up MATLAB uses: matlab-actions/setup-matlab@v2 + with: + products: Simulink - name: Build FAST_SFunc working-directory: ${{runner.workspace}}/openfast/build run: | @@ -645,6 +651,7 @@ jobs: - name: Run MATLAB tests and generate artifacts uses: matlab-actions/run-tests@v2 with: + products: Simulink source-folder: ${{runner.workspace}}/openfast/build/glue-codes/simulink; ${{runner.workspace}}/openfast/glue-codes/simulink/examples test-results-junit: test-results/results.xml code-coverage-cobertura: code-coverage/coverage.xml