From ca33ebf0cb07342cc1d7da350ef17fd8452c3139 Mon Sep 17 00:00:00 2001 From: LukaszKrawczykDev Date: Thu, 20 Nov 2025 15:30:33 +0100 Subject: [PATCH] v4 --- .gitea/workflows/ci.yml | 14 ++++++++------ Program.cs | 2 ++ lab7.csproj | 10 ++++++++++ main.c | 6 ------ 4 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 Program.cs create mode 100644 lab7.csproj delete mode 100644 main.c diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a5bd340..a5466ba 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,10 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: build using gcc - run: gcc -Wall -Werror main.c -o program - - name: Archive production artifacts - uses: actions/upload-artifact@v3 + - uses: actions/setup-dotnet@v3 with: - name: program - path: program \ No newline at end of file + dotnet-version: '8.0.x' + - run: dotnet restore + - run: dotnet build + test: + steps: + - name: trying to run + run: dotnet run \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /dev/null +++ b/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/lab7.csproj b/lab7.csproj new file mode 100644 index 0000000..206b89a --- /dev/null +++ b/lab7.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/main.c b/main.c deleted file mode 100644 index df257a6..0000000 --- a/main.c +++ /dev/null @@ -1,6 +0,0 @@ -#include -int main() -{ - printf("Halo, Welt!"); - return 0; -} \ No newline at end of file