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
1871ce9e
Commit
1871ce9e
authored
3 months ago
by
Cole2.Hansen@live.uwe.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
Updated GitLab CI to upload latest filesss
parent
c8898ca0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-10
8 additions, 10 deletions
.gitlab-ci.yml
with
8 additions
and
10 deletions
.gitlab-ci.yml
+
8
−
10
View file @
1871ce9e
image
:
ubuntu:latest
# Use latest Ubuntu as the base
image
image
:
mcr.microsoft.com/windows/servercore:ltsc2022
# Windows Server
image
stages
:
stages
:
-
build
-
build
before_script
:
before_script
:
-
apt-get update && apt-get install -y build-essential libgl1-mesa-dev xorg-dev wget unzip
-
powershell -Command "Invoke-WebRequest -Uri 'https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_win64_msvc16.zip' -OutFile 'raylib.zip'"
-
wget https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_linux_amd64.tar.gz
-
powershell -Command "Expand-Archive -Path 'raylib.zip' -DestinationPath 'C:\raylib' -Force"
-
tar -xvzf raylib-5.0_linux_amd64.tar.gz
-
echo "Raylib installed in C:\raylib"
-
cp raylib-5.0_linux_amd64/lib/libraylib.a /usr/local/lib/
-
cp -r raylib-5.0_linux_amd64/include/* /usr/local/include/
build
:
build
:
stage
:
build
stage
:
build
...
@@ -16,9 +14,9 @@ build:
...
@@ -16,9 +14,9 @@ build:
-
brickbreaker
# Ensure this matches your runner tag
-
brickbreaker
# Ensure this matches your runner tag
script
:
script
:
-
echo "Checking files..."
-
echo "Checking files..."
-
ls -R
# List
all
files for debugging
-
dir C:\raylib
# List files for debugging
-
gcc main.c paddle.c ball.c brick.c -o brickbreaker
-I/usr/local/
include -L
/usr/local/
lib -lraylib
-lm -ldl -lpthread -lGL -lX11 -lXrandr -lXi -lXinerama -lXcursor
-
gcc main.c paddle.c ball.c brick.c -o brickbreaker
.exe -I"C:\raylib\
include
"
-L
"C:\raylib\
lib
"
-lraylib
artifacts
:
artifacts
:
paths
:
paths
:
-
brickbreaker
-
brickbreaker
.exe
expire_in
:
1 day
#
Keep the binary for 1 day
expire_in
:
1 day
#
Modify as needed
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