From a3e738f167dbc23ddfd4ee0a398845ec76837bac Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 21 Nov 2025 11:04:29 +0100 Subject: [PATCH] Kompilacja i Artefakt --- .gitea/workflows/ci.yml | 10 ++++++++-- main.c | 7 +++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 main.c diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2c962e4..8ccc958 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,5 +5,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Printing hello - run: echo "Hello, world" + - uses: actions/checkout@v4 + - name: build using gcc + run: gcc -Wall -Werror main.c + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: program + path: program diff --git a/main.c b/main.c new file mode 100644 index 0000000..859593a --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include + +int main() +{ +printf("Halo, Welt!"); +return 0; +} \ No newline at end of file