From 652f40a69e916c261601edb900e0b015725f8388 Mon Sep 17 00:00:00 2001 From: Ziabs <118732122+Ziabs1@users.noreply.github.com> Date: Tue, 9 Dec 2025 12:33:01 +0100 Subject: [PATCH] dodanie .net modyfikacja ci --- .gitea/workflows/ci.yml | 14 ++--- Program.cs | 2 + lab7-ci.csproj | 11 ++++ main.c | 5 -- obj/lab7-ci.csproj.nuget.dgspec.json | 74 +++++++++++++++++++++++++ obj/lab7-ci.csproj.nuget.g.props | 16 ++++++ obj/lab7-ci.csproj.nuget.g.targets | 2 + obj/project.assets.json | 80 ++++++++++++++++++++++++++++ obj/project.nuget.cache | 8 +++ 9 files changed, 201 insertions(+), 11 deletions(-) create mode 100644 Program.cs create mode 100644 lab7-ci.csproj delete mode 100644 main.c create mode 100644 obj/lab7-ci.csproj.nuget.dgspec.json create mode 100644 obj/lab7-ci.csproj.nuget.g.props create mode 100644 obj/lab7-ci.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 134b5ef..b302b8f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,10 +5,12 @@ build: 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 +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..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/lab7-ci.csproj b/lab7-ci.csproj new file mode 100644 index 0000000..954ab11 --- /dev/null +++ b/lab7-ci.csproj @@ -0,0 +1,11 @@ + + + + Exe + net8.0 + lab7_ci + enable + enable + + + diff --git a/main.c b/main.c deleted file mode 100644 index 5125862..0000000 --- a/main.c +++ /dev/null @@ -1,5 +0,0 @@ -int main() -{ -printf("Halo, Welt!"); -return 0; -} \ No newline at end of file diff --git a/obj/lab7-ci.csproj.nuget.dgspec.json b/obj/lab7-ci.csproj.nuget.dgspec.json new file mode 100644 index 0000000..78009b7 --- /dev/null +++ b/obj/lab7-ci.csproj.nuget.dgspec.json @@ -0,0 +1,74 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj": {} + }, + "projects": { + "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj", + "projectName": "lab7-ci", + "projectPath": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj", + "packagesPath": "C:\\Users\\Patryk\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Patryk\\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.200" + }, + "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.200/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/lab7-ci.csproj.nuget.g.props b/obj/lab7-ci.csproj.nuget.g.props new file mode 100644 index 0000000..5317e97 --- /dev/null +++ b/obj/lab7-ci.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Patryk\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.13.0 + + + + + + \ No newline at end of file diff --git a/obj/lab7-ci.csproj.nuget.g.targets b/obj/lab7-ci.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/lab7-ci.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..2055d40 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,80 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\Patryk\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj", + "projectName": "lab7-ci", + "projectPath": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj", + "packagesPath": "C:\\Users\\Patryk\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Patryk\\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.200" + }, + "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.200/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..29ecae7 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "hUzpssjbBJ8=", + "success": true, + "projectFilePath": "C:\\Users\\Patryk\\Desktop\\szkola\\Procesy wytwarzania oprogramowania\\lab7\\lab7-ci\\lab7-ci.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file