Skip to content

Commit a965fa3

Browse files
committed
linux: Attempt to get building.
1 parent 17f7b3c commit a965fa3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ jobs:
1818
uses: libsdl-org/setup-sdl@v1
1919
with:
2020
version: sdl3-latest
21+
- name: Set up Linux dependencies
22+
if: ${{ runner.os == 'Linux' }}
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get -y install cmake libasound2-dev
2126
- name: Get SDL_native_midi sources
22-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2328
- name: Configure CMake
2429
run: cmake -B build ${{ matrix.platform.flags }}
2530
- name: Build

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ code on Windows, the preprocessor will remove the entire source file, etc.
2626
There is nothing to configure, just compile all the files and link against
2727
SDL3. You don't have to use the included CMake file.
2828

29+
Linux builds will need access to the ALSA headers (On Ubuntu, you can
30+
run `sudo apt-get install libasound-dev`). They do not need to link to ALSA
31+
directly. Every other platform should work out of the box.
32+
2933
This code likely has bugs, possibly obvious ones; please don't hesistate
3034
to file a bug report and we'll help, but we aren't actively using this code
3135
to find them ourselves.

0 commit comments

Comments
 (0)