Skip to content

Commit

Permalink
ci composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 18, 2024
1 parent 3a2a485 commit c429ed7
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 23 deletions.
10 changes: 5 additions & 5 deletions +matmap3d/geodetic2ned.m
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 21 additions & 0 deletions .github/workflows/composite-buildtool/action.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/composite-install-matlab/action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c429ed7

Please sign in to comment.