Skip to content
Snippets Groups Projects
Commit 1871ce9e authored by Cole2.Hansen@live.uwe.ac.uk's avatar Cole2.Hansen@live.uwe.ac.uk
Browse files

Updated GitLab CI to upload latest filesss

parent c8898ca0
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment