From 6e4a5b02eb4475a221aae124b8ecc1a822b30102 Mon Sep 17 00:00:00 2001
From: Hansen <Cole2.hansen@live.uwe.ac.uk>
Date: Sun, 9 Mar 2025 08:26:24 +0500
Subject: [PATCH] Updated GitLab CI to upload latest filesss

---
 .gitlab-ci.yml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ab6967..c55d70e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,22 +1,21 @@
-image: mcr.microsoft.com/windows/servercore:ltsc2022  # Windows Server image
-
 stages:
   - build
 
 before_script:
-  - powershell -Command "Invoke-WebRequest -Uri 'https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_win64_msvc16.zip' -OutFile 'raylib.zip'"
+  - echo "Setting up environment..."
+  - powershell -Command "Invoke-WebRequest -Uri 'https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_win64_msvc16.zip' -OutFile 'raylib.zip' -UseBasicParsing"
   - powershell -Command "Expand-Archive -Path 'raylib.zip' -DestinationPath 'C:\raylib' -Force"
   - echo "Raylib installed in C:\raylib"
 
 build:
   stage: build
   tags:
-    - brickbreaker  # Ensure this matches your runner tag
+    - brickbreaker
   script:
     - echo "Checking files..."
-    - dir C:\raylib  # List files for debugging
-    - gcc main.c paddle.c ball.c brick.c -o brickbreaker.exe -I"C:\raylib\include" -L"C:\raylib\lib" -lraylib
+    - dir C:\raylib  # Debugging step
+    - gcc main.c paddle.c ball.c brick.c -o brickbreaker.exe -I"C:\raylib\include" -L"C:\raylib\lib" -lraylib -lm
   artifacts:
     paths:
       - brickbreaker.exe
-    expire_in: 1 day  # Modify as needed
+    expire_in: 1 day
-- 
GitLab