diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..19b2f20 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,27 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: libsdl-org/setup-sdl@main + id: sdl + with: + install-linux-dependencies: true + version: 2-latest + version-sdl-image: 2-latest + version-sdl-mixer: 2-latest + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose