Skip to content

Extend lifetime of layers from GroupLayer::get_layer #466

Extend lifetime of layers from GroupLayer::get_layer

Extend lifetime of layers from GroupLayer::get_layer #466

Workflow file for this run

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