From cc7a98bc6117cfcd6f35ffe311728f97e459a52f Mon Sep 17 00:00:00 2001 From: "Eleftherios2.Tsourdiou@live.uwe.ac.uk" <eleftherios2.tsourdiou@live.uwe.ac.uk> Date: Mon, 17 Mar 2025 19:01:06 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2f8b9e5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +stages: + - build + +variables: + # Use a Python 3.8 image for both macOS and Linux builds + PYTHON_VERSION: "3.8" + +build_linux: + image: python:${PYTHON_VERSION}-slim + stage: build + script: + - pip install pyinstaller pyqt6 pandas matplotlib + - pyinstaller --onefile --windowed main.py + artifacts: + paths: + - dist/* # Store the generated executables + only: + - main # Run only when changes are pushed to the main branch + +build_macos: + image: apple/swift:latest + stage: build + script: + - apt-get update && apt-get install -y python3 python3-pip + - pip3 install pyinstaller pyqt6 pandas matplotlib + - pyinstaller --onefile --windowed main.py + artifacts: + paths: + - dist/* + only: + - main + -- GitLab