fix: restore section signs and terrain density #56
This file contains hidden or 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: [ "master" ] | |
| paths: | |
| - ".github/workflows/build.yml" | |
| - "Cargo.lock" | |
| - "Cargo.toml" | |
| - "rust-toolchain.toml" | |
| - "src/**" | |
| - "build.rs" | |
| pull_request: | |
| branches: [ "master" ] | |
| paths: | |
| - ".github/workflows/build.yml" | |
| - "Cargo.lock" | |
| - "Cargo.toml" | |
| - "rust-toolchain.toml" | |
| - "src/**" | |
| - "build.rs" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install native dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libx11-dev libxi-dev libgl1-mesa-dev | |
| - name: Rustfmt | |
| run: cargo fmt -- --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --verbose | |
| build-mac: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install M1 target | |
| run: rustup target add aarch64-apple-darwin | |
| - name: Build x86 | |
| run: cargo build --verbose | |
| - name: Build m1 | |
| run: cargo build --target aarch64-apple-darwin --verbose |