From 1c44cc735c11d5d9045ccdafc7d2972fd2ac8702 Mon Sep 17 00:00:00 2001 From: Alexis Purslane Date: Mon, 29 Apr 2024 13:52:46 -0400 Subject: [PATCH] install SDL dependencies in github action --- .github/workflows/rust.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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