Skip to content

Commit

Permalink
fix GH action when building sdl crate (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
msparkles authored Feb 9, 2025
1 parent 28cd826 commit ffef042
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Install dependencies via apt-get
runs:
using: composite
steps:
- name: SDL2
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libsdl2-dev
version: 2.0
- name: SDL3
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: |
build-essential git make
pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev
libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev
libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev
libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev
version: 3.0
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
include:
- label: Stable
- label: Build Stable
rust_version: stable
# - label: MSRV
# rust_version: 1.62.0
Expand All @@ -25,6 +25,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: ./.github/deps

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -40,11 +41,12 @@ jobs:
run: cargo test --verbose ${{ matrix.flags }}

lint:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
name: Rustfmt and Clippy

steps:
- uses: actions/checkout@v3
- uses: ./.github/deps

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit ffef042

Please sign in to comment.