SBAS + Qc #1597
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
jobs: | |
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: Cargo update | |
with: | |
command: update | |
- uses: actions-rs/cargo@v1 | |
name: Linter | |
with: | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/cargo@v1 | |
name: Build (all features) | |
with: | |
command: build | |
args: --all-features --release | |
- 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/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: Cargo update | |
with: | |
command: update | |
- 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: Cargo update | |
with: | |
command: update | |
- 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 |