Skip to content

RTK V0_4_5

RTK V0_4_5 #1537

Workflow file for this run

name: rust
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
lint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
name: Linter
with:
command: fmt
args: --all -- --check
- name: Audit
continue-on-error: true
run: |
cargo install cargo-audit
cargo audit
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
toolchain: stable
override: true
- name: UBX2RNX dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- uses: actions-rs/cargo@v1
name: Test
with:
command: test
args: --verbose
- uses: actions-rs/cargo@v1
name: Test (all features)
with:
command: test
args: --verbose --all-features
- uses: actions-rs/cargo@v1
name: Build (all features)
with:
command: build
args: --all-features --release
- uses: actions-rs/toolchain@v1
name: Install nightly
with:
toolchain: nightly
override: true
- name: Documentation
run: |
./tools/builddoc.sh
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
name: Build (default)
with:
command: build
args: --release --verbose
- uses: actions-rs/cargo@v1
name: Build (all features)
with:
command: build
args: --all-features --release --verbose
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
name: Build (default)
with:
command: build
args: --release --verbose
- uses: actions-rs/cargo@v1
name: Build (all features)
with:
command: build
args: --all-features --release --verbose