From e776660717c96dbd2ef4160b0b2b8d87dbf94da7 Mon Sep 17 00:00:00 2001 From: mjakmisia Date: Thu, 20 Nov 2025 13:39:02 +0100 Subject: [PATCH] c3 --- .gitea/workflows/ci.yml | 30 +++++++--- NoweRepo.csproj | 10 ++++ Program.cs | 2 + main.c | 7 --- obj/NoweRepo.csproj.nuget.dgspec.json | 74 +++++++++++++++++++++++++ obj/NoweRepo.csproj.nuget.g.props | 16 ++++++ obj/NoweRepo.csproj.nuget.g.targets | 2 + obj/project.assets.json | 80 +++++++++++++++++++++++++++ obj/project.nuget.cache | 8 +++ 9 files changed, 215 insertions(+), 14 deletions(-) create mode 100644 NoweRepo.csproj create mode 100644 Program.cs delete mode 100644 main.c create mode 100644 obj/NoweRepo.csproj.nuget.dgspec.json create mode 100644 obj/NoweRepo.csproj.nuget.g.props create mode 100644 obj/NoweRepo.csproj.nuget.g.targets create mode 100644 obj/project.assets.json create mode 100644 obj/project.nuget.cache diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 62f0f27..8f62257 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,11 +5,27 @@ 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 + 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: + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/download-artifact@v3 + with: + name: app.tar + + - run: tar xf app.tar + + - run: ./app/app \ No newline at end of file diff --git a/NoweRepo.csproj b/NoweRepo.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/NoweRepo.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 99482fb..0000000 --- a/main.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main() -{ - printf("Halo, Welt!"); - return 0; -} \ No newline at end of file diff --git a/obj/NoweRepo.csproj.nuget.dgspec.json b/obj/NoweRepo.csproj.nuget.dgspec.json new file mode 100644 index 0000000..75a0637 --- /dev/null +++ b/obj/NoweRepo.csproj.nuget.dgspec.json @@ -0,0 +1,74 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj": {} + }, + "projects": { + "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj", + "projectName": "NoweRepo", + "projectPath": "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj", + "packagesPath": "C:\\Users\\chali\\.nuget\\packages\\", + "outputPath": "C:\\Users\\chali\\Documents\\NoweRepo\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\chali\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.305/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/NoweRepo.csproj.nuget.g.props b/obj/NoweRepo.csproj.nuget.g.props new file mode 100644 index 0000000..390b906 --- /dev/null +++ b/obj/NoweRepo.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\chali\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.14.0 + + + + + + \ No newline at end of file diff --git a/obj/NoweRepo.csproj.nuget.g.targets b/obj/NoweRepo.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/NoweRepo.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..8722547 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,80 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\chali\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj", + "projectName": "NoweRepo", + "projectPath": "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj", + "packagesPath": "C:\\Users\\chali\\.nuget\\packages\\", + "outputPath": "C:\\Users\\chali\\Documents\\NoweRepo\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\chali\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.305/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..b976127 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "/jJz1hXM1gM=", + "success": true, + "projectFilePath": "C:\\Users\\chali\\Documents\\NoweRepo\\NoweRepo.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file