diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index b27dd49..9d3d1d8 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -6,10 +6,23 @@ 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
+ - run: dotnet test
+ - run: dotnet publish -o app -r linux-x64 --sc
+ /p:PublishSingleFile=true,AssemblyName=app
+ - run: tar cf app.tar app/
+ - uses: actions/upload-artifact@v3
+ with:
+ name: app.tar
+ path: app.tar
+ test:
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: app.tar
+ - run: tar xf app.tar/app.tar
+ - run: ./app/app
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/Lab7.csproj b/Lab7.csproj
new file mode 100644
index 0000000..2150e37
--- /dev/null
+++ b/Lab7.csproj
@@ -0,0 +1,10 @@
+
+
+
+ Exe
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Program.cs b/Program.cs
new file mode 100644
index 0000000..3751555
--- /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/main.c b/main.c
deleted file mode 100644
index 859593a..0000000
--- a/main.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include
-
-int main()
-{
-printf("Halo, Welt!");
-return 0;
-}
\ No newline at end of file