From 1871ce9ee013fc47690ff861ad037e4a9cef6193 Mon Sep 17 00:00:00 2001 From: Hansen <Cole2.hansen@live.uwe.ac.uk> Date: Sun, 9 Mar 2025 08:23:39 +0500 Subject: [PATCH] Updated GitLab CI to upload latest filesss --- .gitlab-ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08641e2..5ab6967 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,12 @@ -image: ubuntu:latest # Use latest Ubuntu as the base image +image: mcr.microsoft.com/windows/servercore:ltsc2022 # Windows Server image stages: - build before_script: - - apt-get update && apt-get install -y build-essential libgl1-mesa-dev xorg-dev wget unzip - - wget https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_linux_amd64.tar.gz - - tar -xvzf raylib-5.0_linux_amd64.tar.gz - - cp raylib-5.0_linux_amd64/lib/libraylib.a /usr/local/lib/ - - cp -r raylib-5.0_linux_amd64/include/* /usr/local/include/ + - powershell -Command "Invoke-WebRequest -Uri 'https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_win64_msvc16.zip' -OutFile 'raylib.zip'" + - powershell -Command "Expand-Archive -Path 'raylib.zip' -DestinationPath 'C:\raylib' -Force" + - echo "Raylib installed in C:\raylib" build: stage: build @@ -16,9 +14,9 @@ build: - brickbreaker # Ensure this matches your runner tag script: - echo "Checking files..." - - ls -R # List all 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 + - 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 artifacts: paths: - - brickbreaker - expire_in: 1 day # Keep the binary for 1 day + - brickbreaker.exe + expire_in: 1 day # Modify as needed -- GitLab