Skip to content

Commit

Permalink
move sdl2
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt2706 committed May 9, 2024
1 parent c82f06c commit 3a96629
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,13 @@ jobs:
- name: Install dependencies
run: |
brew install sdl2
- name: Get info about sdl2
- name: Create SDL2 directory and move SDL2 headers into it
run: |
brew info sdl2
- name: Move SDL2 headers into SDL2 directory
run: |
sudo mkdir /usr/local/include/SDL2
sudo mv /usr/local/include/*.h /usr/local/include/SDL2
sudo mkdir -p /opt/homebrew/Cellar/sdl2/2.30.2/include/SDL2
sudo mv /opt/homebrew/Cellar/sdl2/2.30.2/include/*.h /opt/homebrew/Cellar/sdl2/2.30.2/include/SDL2
- name: Build for macOS
run: |
gcc -o Chip8Interpreter src/*.c -lSDL2 -lm
gcc -o Chip8Interpreter src/*.c -I/opt/homebrew/Cellar/sdl2/2.30.2/include -lSDL2 -lm
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 3a96629

Please sign in to comment.