Skip to content

Commit 78bb1d7

Browse files
committed
Fix discovery of SDL2 on macOS in GitHub Actions
1 parent 27fdcc4 commit 78bb1d7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555
steps:
5656
- uses: actions/checkout@v2
5757
- run: brew install sdl2 sdl2_ttf
58-
- run: ./.github/workflows/release.sh macos-x86_64-sdl
58+
- run: LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
59+
./.github/workflows/release.sh macos-x86_64-sdl
5960
- uses: actions/upload-artifact@v2
6061
with:
6162
name: endbasic-macos-x86_64-sdl

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ jobs:
6464
- run: cargo test --package=endbasic-core -- --include-ignored
6565
- run: cargo test --package=endbasic-std -- --include-ignored
6666
- run: cargo test --package=endbasic-repl -- --include-ignored
67-
- run: cargo test --package=endbasic-sdl
67+
- run: LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
68+
cargo test --package=endbasic-sdl
6869
-- --include-ignored --skip sdl_console
6970
- run: cargo test --package=endbasic-terminal -- --include-ignored
70-
- run: cargo test --package=endbasic --features=sdl
71+
- run: LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
72+
cargo test --package=endbasic --features=sdl
7173
-- --include-ignored --skip sdl_console
7274
- run: cargo test --package=endbasic-web -- --include-ignored
7375

0 commit comments

Comments
 (0)