Skip to content

Commit

Permalink
Add CI build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
claudemuller committed Aug 20, 2023
1 parent 8a1bcf9 commit 1167f68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ jobs:
sudo apt -y install build-essential git libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
git clone https://github.com/raysan5/raylib.git raylib
cd raylib/src/
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
sudo make install RAYLIB_LIBTYPE=SHARED
make PLATFORM=PLATFORM_DESKTOP
sudo make install
- name: make build
run: make build

#- name: make test
# run: make test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ CFLAGS += -pedantic
CFLAGS += -Werror
CFLAGS += -Wextra
CFLAGS += -Wmissing-declarations

ifeq ($(shell uname -s),Darwin)
CFLAGS += $(shell pkg-config --cflags raylib)
LDFLAGS = $(shell pkg-config --libs raylib)

else
CFLAGS += -L/usr/local/lib
LDFLAGS = -I/usr/local/include -lraylib -lGL -lm -pthread -ldl
endif

SRC_FILES = ./src/*.c
BIN_DIR = ./bin
BIN = $(BIN_DIR)/life
Expand Down

0 comments on commit 1167f68

Please sign in to comment.