Skip to content

Merge pull request #25 from SecondHalfGames/extras #19

Merge pull request #25 from SecondHalfGames/extras

Merge pull request #25 from SecondHalfGames/extras #19

Workflow file for this run

name: CI
on:
push:
branches:
- master
- ci
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
rust_version: [stable, 1.67.1]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (${{ matrix.rust_version }})
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true
profile: minimal
- name: Build
run: cargo build --verbose ${{ matrix.flags }}
# TODO: Get tests building
# - name: Run tests
# run: cargo test --verbose ${{ matrix.flags }}
lint:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-features