Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Brickbreaker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cole2.Hansen@live.uwe.ac.uk
Brickbreaker
Commits
d6f647bf
Commit
d6f647bf
authored
1 month ago
by
Cole2.Hansen@live.uwe.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
77cf266b
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-17
14 additions, 17 deletions
.gitlab-ci.yml
with
14 additions
and
17 deletions
.gitlab-ci.yml
+
14
−
17
View file @
d6f647bf
image
:
ubuntu
:latest
# Use
Ubuntu as the bas
e
image
:
macos
:latest
# Use
macOS runner imag
e
stages
:
-
build
before_script
:
-
apt-get update
-
apt-get install -y software-properties-common which
-
add-apt-repository -y ppa:librazer/dev
# Adds Raylib PPA
-
apt-get update
-
apt-get install -y build-essential raylib-dev libgl1-mesa-dev libx11-dev libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev
-
echo "Checking GCC version..."
-
gcc --version
-
echo "Checking include and library paths..."
-
command -v gcc || echo "GCC not found!"
-
ls -l /usr/local/include/raylib || echo "Raylib headers not found!"
-
ls -l /usr/lib || echo "Library path not found!"
-
echo "Running on macOS
:
$(sw_vers)"
# Verify macOS version
-
brew install raylib
# Install Raylib using Homebrew
-
echo "Include Path
:
$(brew --prefix)/include"
-
echo "Library Path
:
$(brew --prefix)/lib"
-
export C_INCLUDE_PATH="$(brew --prefix)/include:$C_INCLUDE_PATH"
-
export LIBRARY_PATH="$(brew --prefix)/lib:$LIBRARY_PATH"
-
export LD_LIBRARY_PATH="$(brew --prefix)/lib:$LD_LIBRARY_PATH"
-
echo "GCC version
:
$(gcc --version)"
# Verify GCC installation
build
:
stage
:
build
script
:
-
echo "Compiling on Linux..."
-
gcc main.c paddle.c ball.c brick.c -o brickbreaker -I/usr/include/raylib -L/usr/lib -lraylib -lm -lX11 -lGL -lpthread -ldl -lrt -lXinerama -lXcursor
-
echo "Compiling with Raylib on macOS..."
-
gcc main.c paddle.c ball.c brick.c -o brickbreaker \
-I$(brew --prefix)/include \
-L$(brew --prefix)/lib \
-lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
artifacts
:
paths
:
-
brickbreaker
expire_in
:
1 day
default
:
shell
:
bash
# Forces Bash shell to avoid PowerShell issues
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment