This commit is contained in:
@@ -3,16 +3,20 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest # Dice al runner di usare Docker
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gcc:latest # Usa un container con il compilatore C
|
||||
options: --memory=128mb --cpus=0.5 # Limiti di risorse professionali
|
||||
# Questa immagine è lo standard professionale per i runner Gitea/Act
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
options: --memory=128mb --cpus=0.5
|
||||
steps:
|
||||
- name: Checkout del codice
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Compilazione
|
||||
- name: Installazione dipendenze (se mancano)
|
||||
run: apt-get update && apt-get install -y build-essential
|
||||
|
||||
- name: Compilazione Professionale
|
||||
run: make build
|
||||
|
||||
- name: Esecuzione Test
|
||||
- name: Esecuzione Sandbox
|
||||
run: make run
|
||||
Reference in New Issue
Block a user