From 493cb8adbece0862b69d44871f91300a5429b90d Mon Sep 17 00:00:00 2001 From: gwbres Date: Wed, 4 Sep 2024 09:21:12 +0200 Subject: [PATCH] Fix nalgebra (#272) * setup daily workflow * Fix nalgebra dependency --------- Signed-off-by: Guillaume W. Bres --- .github/workflows/daily.yml | 133 +++++++++++++++++++++++++++++++ .github/workflows/rust.yml | 2 +- README.md | 1 + crx2rnx/Cargo.toml | 4 +- rinex-cli/Cargo.toml | 12 +-- rinex-cli/src/positioning/mod.rs | 2 +- rinex-qc/Cargo.toml | 8 +- rinex/Cargo.toml | 6 +- rnx2crx/Cargo.toml | 4 +- sp3/Cargo.toml | 2 +- ublox-rnx/Cargo.toml | 2 +- 11 files changed, 155 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/daily.yml diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml new file mode 100644 index 00000000..386f2c2d --- /dev/null +++ b/.github/workflows/daily.yml @@ -0,0 +1,133 @@ +name: Daily Workflow + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" # midnight, every day + +env: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + include: + - name: Workspace default + folder: "." + opts: -r + - name: Workspace All-features + folder: "." + opts: --all-features + - name: RINEX Default + folder: rinex + opts: -r + - name: RINEX Observations + folder: rinex + opts: --features "obs" + - name: RINEX Navigation + folder: rinex + opts: --features "nav" + - name: RINEX QC + folder: rinex + opts: --features "qc" + - name: RINEX Meteo + folder: rinex + opts: --features "meteo" + - name: RINEX Clock + folder: rinex + opts: --features "clock" + - name: ANTEX + folder: rinex + opts: --features "antex" + - name: DORIS RINEX + folder: rinex + opts: --features "doris" + - name: RINEX Processing + folder: rinex + opts: --features "processing" + - name: RINEX Full + folder: rinex + opts: --features "full" + - name: RINEX All-features + folder: rinex + opts: --all-features + - name: SP3 default + folder: sp3 + opts: -r + - name: SP3 QC + folder: sp3 + opts: --features "qc" + - name: SP3 Processing + folder: sp3 + opts: --features "processing" + - name: SP3 All-features + folder: sp3 + opts: --all-features + - name: RINEX-QC Default + folder: rinex-qc + opts: -r + - name: RINEX-QC SP3 + folder: rinex-qc + opts: --features "sp3" + - name: RINEX-QC All-features + folder: rinex-qc + opts: --all-features + + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + name: Install Rust + with: + toolchain: stable + override: true + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libudev-dev + + - name: ${{ matrix.name }} + run: | + cd ${{ matrix.folder }} && cargo clean && cargo update && cargo build ${{ matrix.opts }} + + tests: + name: Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + name: Install Rust + with: + toolchain: stable + override: true + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libudev-dev + - uses: actions-rs/cargo@v1 + name: Test (all features) + with: + command: test + args: --all-features + + documentation: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + name: Install nightly + with: + toolchain: nightly + override: true + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libudev-dev + - name: Documentation + run: | + ./tools/builddoc.sh diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7a161bcd..a75f1524 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: rust +name: Pull Request on: push: diff --git a/README.md b/README.md index 000adeb4..1c66eed3 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ RINEX ===== [![Rust](https://github.com/georust/rinex/actions/workflows/rust.yml/badge.svg)](https://github.com/georust/rinex/actions/workflows/rust.yml) +[![Rust](https://github.com/georust/rinex/actions/workflows/daily.yml/badge.svg)](https://github.com/georust/rinex/actions/workflows/daily.yml) [![crates.io](https://docs.rs/rinex/badge.svg)](https://docs.rs/rinex/) [![crates.io](https://img.shields.io/crates/d/rinex.svg)](https://crates.io/crates/rinex) diff --git a/crx2rnx/Cargo.toml b/crx2rnx/Cargo.toml index 36a9cf64..d9ff9c42 100644 --- a/crx2rnx/Cargo.toml +++ b/crx2rnx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crx2rnx" -version = "2.4.0" +version = "2.4.1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "RINEX data decompressor" @@ -12,4 +12,4 @@ readme = "README.md" [dependencies] clap = { version = "4.4.13", features = ["derive", "color"] } -rinex = { path = "../rinex", version = "=0.17.0-alpha", features = ["serde"] } +rinex = { path = "../rinex", version = "=0.17.0-alpha-1", features = ["serde"] } diff --git a/rinex-cli/Cargo.toml b/rinex-cli/Cargo.toml index 8ffcb3ab..86d63bc5 100644 --- a/rinex-cli/Cargo.toml +++ b/rinex-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rinex-cli" -version = "0.12.0-alpha" +version = "0.12.0-alpha-1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "Command line tool parse and analyze RINEX data" @@ -40,12 +40,12 @@ plotly = "0.9" # plotly = { path = "../../plotly-rs/plotly" } # plotly = { git = "https://github.com/gwbres/plotly", branch = "scattergeo" } -anise = { version = "0.4.2", features = ["embed_ephem"] } +anise = { version = "=0.4.2", features = ["embed_ephem"] } hifitime = { version = "4.0.0-alpha", features = ["serde", "std"] } gnss-rs = { version = "2.2.3", features = ["serde"] } -gnss-rtk = { version = "0.7.2", features = ["serde"] } +gnss-rtk = { version = "=0.7.4", features = ["serde"] } # gnss-rtk = { path = "../../rtk-rs/gnss-rtk", features = ["serde"] } # gnss-rtk = { git = "https://github.com/rtk-rs/gnss-rtk", branch = "main", features = ["serde"] } @@ -53,6 +53,6 @@ cggtts = { version = "4.1.6", features = ["serde", "scheduler"], optional = true # cggtts = { path = "../../cggtts/cggtts", features = ["serde", "scheduler"], optional = true } # cggtts = { git = "https://github.com/gwbres/cggtts", branch = "main", features = ["serde", "scheduler"], optional = true } -rinex = { path = "../rinex", version = "=0.17.0-alpha", features = ["full"] } -sp3 = { path = "../sp3", version = "=1.1.0-alpha", features = ["serde", "flate2"] } -rinex-qc = { path = "../rinex-qc", version = "=0.2.0-alpha", features = ["sp3"] } +rinex = { path = "../rinex", version = "=0.17.0-alpha-1", features = ["full"] } +sp3 = { path = "../sp3", version = "=1.1.0-alpha-1", features = ["serde", "flate2"] } +rinex-qc = { path = "../rinex-qc", version = "=0.2.0-alpha-1", features = ["sp3"] } diff --git a/rinex-cli/src/positioning/mod.rs b/rinex-cli/src/positioning/mod.rs index 2d385eeb..6e72c6bb 100644 --- a/rinex-cli/src/positioning/mod.rs +++ b/rinex-cli/src/positioning/mod.rs @@ -260,7 +260,7 @@ pub fn precise_positioning( }, None => { let method = Method::default(); - let mut cfg = Config::static_preset(method); + let mut cfg = Config::static_ppp_preset(method); /* * CGGTTS special case diff --git a/rinex-qc/Cargo.toml b/rinex-qc/Cargo.toml index eb028a33..b2185b83 100644 --- a/rinex-qc/Cargo.toml +++ b/rinex-qc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rinex-qc" -version = "0.2.0-alpha" +version = "0.2.0-alpha-1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "RINEX and more broadly, GNSS data processing" @@ -37,7 +37,7 @@ thiserror = "1" strum = "0.26" itertools = "0.13.0" strum_macros = "0.26" -anise = { version = "0.4.2", features = ["embed_ephem"] } +anise = { version = "=0.4.2", features = ["embed_ephem"] } serde = { version = "1.0", default-features = false, features = ["derive"] } statrs = { version = "0.16", optional = true } @@ -49,10 +49,10 @@ plotly = "0.9" hifitime = "4.0.0-alpha" gnss-rs = { version = "2.2.3", features = ["serde"] } -rinex = { path = "../rinex", version = "=0.17.0-alpha", features = ["full"] } +rinex = { path = "../rinex", version = "=0.17.0-alpha-1", features = ["full"] } rinex-qc-traits = { path = "../qc-traits", version = "=0.2.0", features = ["processing"] } -sp3 = { path = "../sp3", version = "=1.1.0-alpha", features = ["qc", "processing", "serde"], optional = true } +sp3 = { path = "../sp3", version = "=1.1.0-alpha-1", features = ["qc", "processing", "serde"], optional = true } [dev-dependencies] serde_json = "1" diff --git a/rinex/Cargo.toml b/rinex/Cargo.toml index f74d0c57..8b00e74f 100644 --- a/rinex/Cargo.toml +++ b/rinex/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rinex" -version = "0.17.0-alpha" +version = "0.17.0-alpha-1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "Package to parse and analyze RINEX data" @@ -107,8 +107,8 @@ flate2 = { version = "1.0.24", optional = true, default-features = false, featur geo = { version = "0.28", optional = true } wkt = { version = "0.10.0", default-features = false, optional = true } -anise = { version = "0.4.2", optional = true } -nalgebra = { version = "0.32.3", optional = true } +anise = { version = "=0.4.2", optional = true } +nalgebra = { version = "=0.32.3", optional = true } hifitime = { version = "4.0.0-alpha", features = ["serde", "std"] } gnss-rs = { version = "2.2.3", features = ["serde", "domes", "cospar"] } diff --git a/rnx2crx/Cargo.toml b/rnx2crx/Cargo.toml index 9c32be8e..545bed19 100644 --- a/rnx2crx/Cargo.toml +++ b/rnx2crx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rnx2crx" -version = "1.3.0" +version = "1.3.1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "RINEX data compressor" @@ -14,4 +14,4 @@ readme = "README.md" [dependencies] thiserror = "1" clap = { version = "4.4.13", features = ["derive", "color"] } -rinex = { path = "../rinex", version = "=0.17.0-alpha", features = ["serde"] } +rinex = { path = "../rinex", version = "=0.17.0-alpha-1", features = ["serde"] } diff --git a/sp3/Cargo.toml b/sp3/Cargo.toml index 56b7f4ce..34a98421 100644 --- a/sp3/Cargo.toml +++ b/sp3/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sp3" -version = "1.1.0-alpha" +version = "1.1.0-alpha-1" license = "MIT OR Apache-2.0" authors = ["Guillaume W. Bres "] description = "IGS SP3 file parser" diff --git a/ublox-rnx/Cargo.toml b/ublox-rnx/Cargo.toml index ec572aba..422507e7 100644 --- a/ublox-rnx/Cargo.toml +++ b/ublox-rnx/Cargo.toml @@ -22,4 +22,4 @@ serialport = "4.2.0" ublox = "0.4.4" gnss-rs = { version = "2.2.3", features = ["serde"] } clap = { version = "4.4.10", features = ["derive", "color"] } -rinex = { path = "../rinex", version = "=0.17.0-alpha", features = ["serde", "nav", "obs", "clock"] } +rinex = { path = "../rinex", version = "=0.17.0-alpha-1", features = ["serde", "nav", "obs", "clock"] }