Skip to content

Commit

Permalink
Linux build script, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jan 23, 2025
1 parent 8a99d38 commit fd2a998
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,32 @@ jobs:
build/Release/*.dll
build/Release/*.ttf
build/Release/*.ogg
build/Release/*.svg
build-linux:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: sudo apt install -y --no-install-recommends build-essential git 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 ibpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev
- name: Configure
run: cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -S . -B build
- name: Build
run: cmake --build build --target sdl-min --config Release
- name: Upload Build
uses: actions/upload-artifact@v4
if: ${{ matrix.target != 'WindowsStore' }}
with:
name: sdl-min-${{ matrix.target }}-${{ matrix.arch }}
path: |
build/sdl-min
build/*.dll
build/*.ttf
build/*.ogg
build/*.svg
build-mac:
name: Build for Apple
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## SDL3 App From Source Minimal Example
This is a minimal example for building and using SDL3, SDL_mixer, and SDL_ttf_ from source
This is a minimal example for building and using SDL3, SDL_Mixer, SDL_Image, and SDL_ttf_ from source
using C++ and CMake. It also demonstrates setting up things like macOS/iOS
bundles.
See [src/main.cpp](src/main.cpp) for the code.
Expand Down

0 comments on commit fd2a998

Please sign in to comment.