feat: only show location data when avilable #4
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: Check branch changes | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./rust/api-server | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Rust setup | |
run: rustup toolchain install stable --profile minimal | |
- name: Build | |
run: cargo fmt --check | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./rust/api-server | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Rust setup | |
run: rustup toolchain install stable --profile minimal | |
- name: Build | |
run: cargo build --release --bin bitcraft-hub-api |