diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7bdab6d..c097c6b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,14 +1,17 @@ name: First CI on: [push] + jobs: 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 \ 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_pwo.csproj b/lab7_pwo.csproj new file mode 100644 index 0000000..206b89a --- /dev/null +++ b/lab7_pwo.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + 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/lab7_pwo.csproj.nuget.dgspec.json b/obj/lab7_pwo.csproj.nuget.dgspec.json new file mode 100644 index 0000000..cabcf81 --- /dev/null +++ b/obj/lab7_pwo.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj": {} + }, + "projects": { + "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj", + "projectName": "lab7_pwo", + "projectPath": "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj", + "packagesPath": "/Users/dawid/.nuget/packages/", + "outputPath": "/Users/dawid/Studia/SEM7/lab7_pwo/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/dawid/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "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": "/usr/local/share/dotnet/sdk/8.0.403/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/lab7_pwo.csproj.nuget.g.props b/obj/lab7_pwo.csproj.nuget.g.props new file mode 100644 index 0000000..6595a7e --- /dev/null +++ b/obj/lab7_pwo.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /Users/dawid/.nuget/packages/ + /Users/dawid/.nuget/packages/ + PackageReference + 6.11.1 + + + + + \ No newline at end of file diff --git a/obj/lab7_pwo.csproj.nuget.g.targets b/obj/lab7_pwo.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/lab7_pwo.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..3d58c36 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,71 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/Users/dawid/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj", + "projectName": "lab7_pwo", + "projectPath": "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj", + "packagesPath": "/Users/dawid/.nuget/packages/", + "outputPath": "/Users/dawid/Studia/SEM7/lab7_pwo/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/dawid/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "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": "/usr/local/share/dotnet/sdk/8.0.403/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..5e04c57 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "sKFLmAZWMM4=", + "success": true, + "projectFilePath": "/Users/dawid/Studia/SEM7/lab7_pwo/lab7_pwo.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file