Map::layers() doesn't really list ALL layers - added a comment about it #465
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: [ current, next ] | |
pull_request: | |
branches: [ current, next ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 # Version 24 required for last version of CSFML | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup rust-cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Update package manager | |
run: sudo apt-get update | |
- name: Install dependencies | |
run: sudo apt-get install -y libsfml-dev libcsfml-dev libasound2-dev libudev-dev | |
- name: Build library | |
run: cargo build --lib --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
rustfmt: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get nightly Rust toolchain with rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt | |
- name: Run cargo fmt --all -- --check | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Update package manager | |
run: sudo apt-get update | |
- name: Install dependencies | |
run: sudo apt-get install -y libsfml-dev libcsfml-dev libasound2-dev libudev-dev | |
- name: Get stable Rust toolchain with clippy | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: clippy | |
- name: Run cargo clippy --all-targets --package tiled | |
run: cargo clippy --all-targets --package tiled | |
docs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Update package manager | |
run: sudo apt-get update | |
- name: Install dependencies | |
run: sudo apt-get install -y libsfml-dev libcsfml-dev libasound2-dev libudev-dev | |
- name: Get stable Rust toolchain with doc | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rust-docs | |
- name: Run cargo doc -p tiled --no-deps | |
run: cargo doc -p tiled --no-deps |