From c429ed70908bbb796706d9c14fbb05768479a726 Mon Sep 17 00:00:00 2001 From: scivision Date: Mon, 18 Nov 2024 17:10:30 -0500 Subject: [PATCH] ci composite actions --- +matmap3d/geodetic2ned.m | 10 ++++----- .github/workflows/ci.yml | 22 ++++--------------- .../workflows/composite-buildtool/action.yml | 21 ++++++++++++++++++ .../composite-install-matlab/action.yml | 13 +++++++++++ 4 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/composite-buildtool/action.yml create mode 100644 .github/workflows/composite-install-matlab/action.yml diff --git a/+matmap3d/geodetic2ned.m b/+matmap3d/geodetic2ned.m index f9156b5..3fce387 100644 --- a/+matmap3d/geodetic2ned.m +++ b/+matmap3d/geodetic2ned.m @@ -1,14 +1,14 @@ -function [north, east, down] = geodetic2ned(lat, lon, alt, lat0, lon0, alt0, spheroid, angleUnit) -%% geodetic2ned convert from geodetic to NED coordinates +%% GEODETIC2NED convert from geodetic to NED coordinates % %%% Inputs % * lat,lon, alt: ellipsoid geodetic coordinates of point under test (degrees, degrees, meters) % * lat0, lon0, alt0: ellipsoid geodetic coordinates of observer/reference (degrees, degrees, meters) % * spheroid: referenceEllipsoid % * angleUnit: string for angular units. Default 'd': degrees -% -%%% outputs -% * e,n,u: East, North, Up coordinates of test points (meters) +%% outputs +% * n,e,d: North, East, Down coordinates of test points (meters) + +function [north, east, down] = geodetic2ned(lat, lon, alt, lat0, lon0, alt0, spheroid, angleUnit) arguments lat {mustBeReal} lon {mustBeReal} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb2ece5..43d9daf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,25 +15,11 @@ jobs: strategy: matrix: - release: [R2020b, R2023b] + release: [R2020b, latest] steps: - uses: actions/checkout@v4 - - name: Install MATLAB - uses: matlab-actions/setup-matlab@v2 - with: - release: ${{ matrix.release }} - - - name: Run Matlab tests (buildtool) - if: ${{ matrix.release >= 'R2022b' }} - timeout-minutes: 10 - uses: matlab-actions/run-build@v2 - - - name: Run tests (manual) - if: ${{ matrix.release < 'R2022b' }} - timeout-minutes: 10 - uses: matlab-actions/run-tests@v2 - with: - strict: true - select-by-folder: test + - uses: ./.github/workflows/composite-install-matlab + + - uses: ./.github/workflows/composite-buildtool diff --git a/.github/workflows/composite-buildtool/action.yml b/.github/workflows/composite-buildtool/action.yml new file mode 100644 index 0000000..e1b40da --- /dev/null +++ b/.github/workflows/composite-buildtool/action.yml @@ -0,0 +1,21 @@ +name: "matlab-buildtool" + +runs: + + using: "composite" + + steps: + + - name: Run Matlab buildtool + if: ${{ matrix.release >= 'R2022b' || matrix.release == 'latest' || matrix.release == 'latest-including-prerelease' }} + uses: matlab-actions/run-build@v2 + with: + startup-options: ${{ matrix.startup-options }} + tasks: test + + + - name: Run tests (manual) + if: ${{ matrix.release < 'R2022b' && matrix.release != 'latest' && matrix.release != 'latest-including-prerelease' }} + uses: matlab-actions/run-tests@v2 + with: + select-by-folder: test diff --git a/.github/workflows/composite-install-matlab/action.yml b/.github/workflows/composite-install-matlab/action.yml new file mode 100644 index 0000000..0d5590b --- /dev/null +++ b/.github/workflows/composite-install-matlab/action.yml @@ -0,0 +1,13 @@ +name: "install-matlab" + +runs: + + using: "composite" + + steps: + + - name: Install MATLAB + uses: matlab-actions/setup-matlab@v2 + with: + release: ${{ matrix.release }} + cache: true