Skip to content

Commit 8f43902

Browse files
authored
Clean up CI pipelines (#117)
1 parent 65de54e commit 8f43902

File tree

5 files changed

+51
-54
lines changed

5 files changed

+51
-54
lines changed

.github/workflows/ci.yaml

+35-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
11
---
22
name: CI
3-
"on":
3+
on:
44
pull_request:
55
push:
66
branches:
77
- "master"
88
schedule:
99
- cron: "0 16 * * 1" # 8am PST every Monday
1010
jobs:
11-
ci:
12-
name: Format, lint, and test
11+
lint:
12+
name: Lints
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: Install rust
19+
run: |
20+
rustup -V
21+
rustup set profile minimal
22+
rustup toolchain install stable
23+
rustup show
24+
25+
- name: Check Formatting
26+
run: cargo fmt --check --all --verbose
27+
28+
- name: Clippy
29+
run: cargo clippy --workspace --all-features --verbose -- -Dwarnings
30+
31+
# Check for docs warnings
32+
# Only do this for the swiftnav crate since swiftnav-sys has some errors
33+
# in the bindgen output
34+
- name: Docs
35+
env:
36+
RUSTDOCFLAGS: -D warnings
37+
run: cargo doc --package swiftnav --all-features --no-deps --verbose
38+
39+
build:
40+
name: Build and test
1341
runs-on: ${{ matrix.os }}
1442
strategy:
1543
matrix:
@@ -19,25 +47,18 @@ jobs:
1947
binary_target: x86_64-unknown-linux-musl
2048
needs_musl: true
2149
toolchain: stable
22-
- os: ubuntu-20.04
23-
binary_target: x86_64-unknown-linux-gnu
24-
toolchain: stable
25-
2650
# MacOS ARM
2751
- os: macos-latest
2852
binary_target: aarch64-apple-darwin
2953
toolchain: stable
30-
3154
# Windows
3255
- os: windows-latest
3356
binary_target: x86_64-pc-windows-msvc
3457
toolchain: stable
35-
3658
# Nightly Rust
3759
- os: ubuntu-latest
3860
binary_target: x86_64-unknown-linux-gnu
3961
toolchain: nightly
40-
4162
# MSRV
4263
- os: ubuntu-latest
4364
binary_target: x86_64-unknown-linux-gnu
@@ -46,7 +67,6 @@ jobs:
4667
- uses: actions/checkout@v4
4768
with:
4869
submodules: recursive
49-
- uses: davidB/rust-cargo-make@v1
5070

5171
- name: Install musl tools
5272
if: matrix.needs_musl
@@ -77,4 +97,7 @@ jobs:
7797
rustup show
7898
7999
- name: Build
80-
run: cargo make --no-workspace workspace-ci-flow
100+
run: cargo build --workspace --all-features --verbose
101+
102+
- name: Test
103+
run: cargo test --workspace --all-features --verbose

Makefile.toml

-26
This file was deleted.

swiftnav/src/coords.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
//! the more common algortihms based on the Newton-Raphson method.
4242
//!
4343
//! # References
44-
//! * "A comparison of methods used in rectangular to Geodetic Coordinates
45-
//! Transformations", Burtch R. R. (2006), American Congress for Surveying
46-
//! and Mapping Annual Conference. Orlando, Florida.
47-
//! * "Transformation from Cartesian to Geodetic Coordinates Accelerated by
48-
//! Halley’s Method", T. Fukushima (2006), Journal of Geodesy.
44+
//! * "A comparison of methods used in rectangular to Geodetic Coordinates
45+
//! Transformations", Burtch R. R. (2006), American Congress for Surveying
46+
//! and Mapping Annual Conference. Orlando, Florida.
47+
//! * "Transformation from Cartesian to Geodetic Coordinates Accelerated by
48+
//! Halley’s Method", T. Fukushima (2006), Journal of Geodesy.
4949
5050
use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign};
5151

swiftnav/src/reference_frame/mod.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
//! This module provides several types and functions to help transform a set of coordinates
3737
//! from one reference frame to another, and from one epoch to another. Several sets of
3838
//! transformation parameters are included for converting between common reference frames.
39-
//! To start out, you must have a [`Coordinate`](crate::coords::Coordinate) that you want to
40-
//! transform. This consists of a position, an epoch, and a reference frame as well as an optional
41-
//! velocity. You then need to get the [`Transformation`](crate::reference_frame::Transformation)
42-
//! object that describes the transformation from the reference frame of the coordinate to the
43-
//! desired reference frame. You can then call the `transform` method on the transformation object
44-
//! to get a new coordinate in the desired reference frame. This transformation will change the
45-
//! position and velocity of the coordinate, but it does not the change the epoch of the coordinate.
46-
//! If you need to change the epoch of the coordinate you will need to use the [`Coordinate::adjust_epoch`](crate::coords::Coordinate::adjust_epoch)
39+
//! To start out, you must have a [`Coordinate`] that you want to transform. This consists of a
40+
//! position, an epoch, and a reference frame as well as an optional velocity. You then need to
41+
//! get the [`Transformation`] object that describes the transformation from the reference
42+
//! frame of the coordinate to the desired reference frame. You can then call the `transform`
43+
//! method on the transformation object to get a new coordinate in the desired reference frame.
44+
//! This transformation will change the position and velocity of the coordinate, but it does
45+
//! not the change the epoch of the coordinate. If you need to change the epoch of the
46+
//! coordinate you will need to use the [`Coordinate::adjust_epoch`](crate::coords::Coordinate::adjust_epoch)
4747
//! method which uses the velocity of the coordinate to determine the position at the new epoch.
4848
//!
4949
//! # Example
@@ -304,7 +304,7 @@ pub fn get_transformation(
304304

305305
/// A helper type for finding transformations between reference frames that require multiple steps
306306
///
307-
/// This object can be used to determine which calls to [`get_transformation`](crate::reference_frame::get_transformation)
307+
/// This object can be used to determine which calls to [`get_transformation`]
308308
/// are needed when a single transformation does not exist between two reference frames.
309309
pub struct TransformationGraph {
310310
graph: HashMap<ReferenceFrame, HashSet<ReferenceFrame>>,

swiftnav/src/troposphere.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
//! parameters are hardcoded into the library, unlike the ionosphere model.
1414
//!
1515
//! # References
16-
//! * UNB Neutral Atmosphere Models: Development and Performance. R Leandro,
17-
//! M Santos, and R B Langley
16+
//! * UNB Neutral Atmosphere Models: Development and Performance. R Leandro,
17+
//! M Santos, and R B Langley
1818
1919
/// Calculate tropospheric delay using UNM3m model.
2020
///

0 commit comments

Comments
 (0)