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