diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08641e2cf40874d9ffd960afbfbe608c04f0b4f8..5ab6967fd49cfc93fd82c69f10dd2c50eb83312d 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