Skip to content

Commit

Permalink
Add GitHub workflow to build and test every PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Oct 18, 2023
1 parent fbf3638 commit 548f5ae
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install libsdl
run: sudo apt-get update && sudo apt-get -y install libsdl2-dev
- name: Check
run: cargo check --workspace --verbose --all-targets --all-features
- name: Build
run: cargo build --workspace --verbose --all-targets
- name: Run tests
run: cargo test --workspace --verbose --all-targets

0 comments on commit 548f5ae

Please sign in to comment.