From da5eef219d0b21ef8565c04e659fdc0274e7f9d2 Mon Sep 17 00:00:00 2001 From: James Hiew Date: Thu, 1 Aug 2024 23:40:16 +0100 Subject: [PATCH] Update CI (#17) --- .github/workflows/ci.yml | 24 ++++++++++++++++++++---- README.md | 2 +- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da30313..6aa629d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,16 +11,32 @@ env: CARGO_TERM_VERBOSE: true jobs: - ci: + lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - run: rustup show - run: rustup component add rustfmt - run: cargo fmt --all -- --check + vet: + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v4 + - run: rustup show + - name: Install system packages needed by Bevy + run: | + sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev + - uses: Swatinem/rust-cache@v2 + - run: cargo clippy --all-targets + test: + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v4 + - run: rustup show - name: Install system packages needed by Bevy run: | sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev - uses: Swatinem/rust-cache@v2 - - run: cargo check --all-targets - run: cargo test - - run: cargo build --release --no-default-features diff --git a/README.md b/README.md index b47422e..d2ad822 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# infinigen +# infinigen [![CI](https://github.com/jameshiew/infinigen/actions/workflows/ci.yml/badge.svg)](https://github.com/jameshiew/infinigen/actions/workflows/ci.yml) This is a demo for Minecraft-like procedural generation using the [Bevy game engine](https://bevyengine.org/).