Citation and referencing guidelines (#208) #1435
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: | |
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 | |
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 |