Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sources #311

Merged
merged 8 commits into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 5 additions & 15 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
## GeoRust RINEX toolbox Issue Template
## RINEX library Issue

Thank you for using our toolbox and trying to make it better 🛰️ 🌍

When reporting applications issues, please follow the first paragraph.
When reporting errors in the core libraries, refer to the second paragraph.

## Applications error reporting

- [ ] Make sure you are using the [latest revision](https://github.com/georust/rinex/releases) of the application
- [ ] Provide the faulty command line so we can reproduce the error
- [ ] if the error is triggered by external data (not hosted within this repo), please be specific about the type of files and revisions being used
- [ ] Attach the application logs (use $RUST_LOG - environment variable) to your issue, either by direct Copy/Pasting
or by attaching a separate file (you can use compression)
Thank you for using our library and trying to make it better 🛰️ 🌍

## Core Library error reporting

- [ ] Make sure you are using the [latest revision](https://github.com/georust/rinex/releases) of the library
- [ ] Provide a minimal reproducible example, so we can reproduce the error
- [ ] Make sure you are using the [latest library version](https://github.com/rtk-rs/rinex/releases)
- [ ] Ideally, provide a minimal reproducible example, so we can reproduce the error, that might include
custom input data.
57 changes: 11 additions & 46 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,27 @@ jobs:
fail-fast: true
matrix:
include:
- name: Workspace default
folder: "."
- name: Default
opts: -r
- name: Workspace All-features
folder: "."
opts: --all-features
- name: RINEX Default
folder: rinex
opts: -r
- name: RINEX Observations
folder: rinex
- name: Observations
opts: --features "obs"
- name: RINEX Navigation
folder: rinex
- name: Navigation
opts: --features "nav"
- name: RINEX QC
folder: rinex
- name: Qc
opts: --features "qc"
- name: RINEX Meteo
folder: rinex
- name: Meteo
opts: --features "meteo"
- name: RINEX Clock
folder: rinex
- name: Clock
opts: --features "clock"
- name: ANTEX
folder: rinex
opts: --features "antex"
- name: DORIS RINEX
folder: rinex
- name: DORIS
opts: --features "doris"
- name: RINEX Processing
folder: rinex
- name: Processing
opts: --features "processing"
- name: RINEX Full
folder: rinex
- name: Full
opts: --features "full"
- name: RINEX All-features
folder: rinex
opts: --all-features
- name: BINEX
folder: binex
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
- name: All-features
opts: --all-features

steps:
Expand All @@ -82,11 +50,10 @@ jobs:
- 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 }}
cargo clean && cargo update && cargo build ${{ matrix.opts }}

tests:
name: Tests
Expand All @@ -101,7 +68,6 @@ jobs:
- 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:
Expand All @@ -121,7 +87,6 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- name: Documentation
run: |
./tools/builddoc.sh
205 changes: 9 additions & 196 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ permissions:

jobs:
publish_crates:
name: Release Libraries
name: Release
runs-on: ubuntu-latest
continue-on-error: true
if: github.ref_type == 'tag'
strategy:
matrix:
include:
- crate: rinex
- crate: sp3
- crate: sinex
- crate: binex
- crate: ublox-rnx
- crate: rinex-cli
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,105 +26,32 @@ jobs:
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo login $TOKEN
cargo publish -p ${{ matrix.crate }} --allow-dirty
cargo publish --allow-dirty

build:
name: build
runs-on: ${{ matrix.os }}
continue-on-error: true
env:
CARGO: cargo
RUST_BACKTRACE: 1
strategy:
fail-fast: false
matrix:
include:
- build: linux
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: macos
os: macos-latest
rust: stable
target: aarch64-apple-darwin
- build: win64-msvc
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}

- name: UBX2RNX Dependencies
if: matrix.build == 'linux'
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev

- name: Build applications
shell: bash
run: |
CARGO_PROFILE_RELEASE_STRIP=symbols ${{ env.CARGO }} build \
--verbose \
--target ${{ matrix.target }} \
--all-features \
--release \
-p rinex-cli \
-p ublox-rnx
ls -lah target/${{ matrix.target }}/release
if [ "${{ matrix.os }}" = "windows-latest" ]; then
rinexcli="target/${{ matrix.target }}/release/rinex-cli.exe"
ubloxrnx="target/${{ matrix.target }}/release/ublox-rnx.exe"
else
rinexcli="target/${{ matrix.target }}/release/rinex-cli"
ubloxrnx="target/${{ matrix.target }}/release/ublox-rnx"
fi
echo "RNXCLI=$rinexcli" >> $GITHUB_ENV
echo "UBX2RNX=$ubloxrnx" >> $GITHUB_ENV

- name: Determine archive name
shell: bash
run: |
echo "ARCHIVE=rinex-${{ github.ref_name }}-${{ matrix.target }}" >> $GITHUB_ENV
echo "ARCHIVE=rinex-${{ github.ref_name }}" >> $GITHUB_ENV

- name: Creating directory for archive
shell: bash
run: |
mkdir -p "$ARCHIVE"
cp {README.md,LICENSE-MIT,LICENSE-APACHE} "$ARCHIVE"/
cp "$RNXCLI" "$ARCHIVE"/
cp "$UBX2RNX" "$ARCHIVE"/
cp {README.md,LICENSE} "$ARCHIVE"

- name: Gzip archive (Unix)
shell: bash
if: matrix.os != 'windows-latest'
run: |
tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV

- name: Zip archive (Windows)
shell: bash
if: matrix.os == 'windows-latest'
run: |
7z a "$ARCHIVE.zip" "$ARCHIVE"
certutil -hashfile "$ARCHIVE.zip" SHA256 > "$ARCHIVE.zip.sha256"
echo "ASSET=$ARCHIVE.zip" >> $GITHUB_ENV
echo "ASSET_SUM=$ARCHIVE.zip.sha256" >> $GITHUB_ENV

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -165,122 +83,17 @@ jobs:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}

- name: Download x86_64-unknown-linux-gnu
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz

- name: Download x86_64-unknown-linux-gnu (cksum)
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz.sha256

- name: Upload x86_64-unknown-linux-gnu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz
asset_name: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz
asset_content_type: application/gzip

- name: Upload x86_64-unknown-linux-gnu (cksum)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz.sha256
asset_name: rinex-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz.sha256
asset_content_type: application/gzip

- name: Download x86_64-apple-darwin
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz

- name: Download x86_64-apple-darwin (cksum)
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz.sha256

- name: Upload x86_64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
asset_name: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
asset_content_type: application/gzip

- name: Upload x86_64-apple-darwin (cksum)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz.sha256
asset_name: rinex-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz.sha256
asset_content_type: application/gzip

- name: Download aarch64-apple-darwin
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
name: rinex-${{ github.ref_name }}

- name: Download aarch64-apple-darwin (cksum)
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz.sha256

- name: Upload aarch64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
asset_name: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
asset_content_type: application/gzip

- name: Upload aarch64-apple-darwin (cksum)
- name: Upload asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz.sha256
asset_name: rinex-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz.sha256
asset_path: rinex-${{ github.ref_name }}
asset_name: rinex-${{ github.ref_name }}
asset_content_type: application/gzip

- name: Download x86_64-pc-windows-msvc
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip

- name: Download x86_64-pc-windows-msvc (cksum)
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip.sha256

- name: Upload x86_64-pc-windows-msvc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip
asset_name: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip
asset_content_type: application/zip

- name: Upload x86_64-pc-windows-msvc (cksum)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip.sha256
asset_name: rinex-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip.sha256
asset_content_type: application/zip
Loading
Loading