Skip to content

Commit

Permalink
Update GitHub Actions workflow to include Clippy and test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrownlie authored Apr 25, 2024
1 parent 0d66e38 commit 0746ec7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch:
# push:
# branches:
# - main

env:
CARGO_TERM_COLOR: always
Expand All @@ -12,11 +13,12 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Install Dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update \
&& sudo apt-get install -y g++ pkg-config libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
Expand All @@ -30,10 +32,14 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- name: Clippy
run: cargo clippy
- name: Run Tests
run: cargo test
- name: Build Release
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: "bevy-example-release"
path: "./target/release/bevy-example"
name: "bevy-example-release-${{ runner.os }}"
path: "./target/release/bevy-example*"

0 comments on commit 0746ec7

Please sign in to comment.