From 71e399dcb05aafd023b17f5d99d4198e9db79656 Mon Sep 17 00:00:00 2001 From: Dana123098 Date: Thu, 20 Nov 2025 12:21:22 +0100 Subject: [PATCH] Add C program and GCC build in CI --- .gitea/workflows/ci.yml | 9 ++++----- main.c | 5 +++++ 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 main.c diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 798204f..dcabf62 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,11 +1,10 @@ name: First CI - -on: - [push] +on: [push] jobs: build: runs-on: ubuntu-latest steps: - - name: Printing hello - run: echo "Hello, 🌍" + - uses: actions/checkout@v4 + - name: build using gcc + run: gcc -Wall -Werror main.c diff --git a/main.c b/main.c new file mode 100644 index 0000000..b5f69bd --- /dev/null +++ b/main.c @@ -0,0 +1,5 @@ +int main() +{ + printf("Halo, Welt!"); + return 0; +}