From 870dc2450ad5c2674fe9341bd5828a5bb260918d Mon Sep 17 00:00:00 2001 From: boloilking Date: Tue, 17 Feb 2026 14:44:28 +0100 Subject: [PATCH] Aggiunta main.c e Makefile --- .gitea/workflows/deploy.yaml | 18 ++++++++++++++++++ Makefile | 5 +++++ huh.c | 0 main.c | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 Makefile delete mode 100644 huh.c create mode 100644 main.c diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..29ddb64 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Punisher CI/CD +on: [push] + +jobs: + build-and-test: + runs-on: docker # Dice al runner di usare Docker + container: + image: gcc:latest # Usa un container con il compilatore C + options: --memory=128mb --cpus=0.5 # Limiti di risorse professionali + steps: + - name: Checkout del codice + uses: actions/checkout@v3 + + - name: Compilazione + run: make build + + - name: Esecuzione Test + run: make run \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c6099d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +build: + gcc -Wall main.c -o lab_app + +run: + ./lab_app \ No newline at end of file diff --git a/huh.c b/huh.c deleted file mode 100644 index e69de29..0000000 diff --git a/main.c b/main.c new file mode 100644 index 0000000..1afec31 --- /dev/null +++ b/main.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("🚀 Punisher Lab: Codice eseguito con successo!\n"); + return 0; +} \ No newline at end of file