Compare commits

...

10 Commits

Author SHA1 Message Date
Student Politechniki
ebcdd6ea93 fixed ci.yml
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m28s
First CI / build (win-x64) (push) Successful in 1m32s
2025-11-21 14:15:54 +01:00
Student Politechniki
ad68caa640 fixed ci.yml
Some checks failed
First CI / build (linux-x64) (push) Failing after 0s
First CI / build (win-x64) (push) Failing after 0s
2025-11-21 14:13:53 +01:00
Student Politechniki
3bbff03d3a updated ci.yml
Some checks failed
First CI / build (linux-x64) (push) Failing after 1m27s
First CI / build (win-x64) (push) Failing after 1m43s
2025-11-21 14:10:34 +01:00
Student Politechniki
8c8833f5e8 updated ci.yml
Some checks failed
First CI / build (linux-x64) (push) Failing after 1m8s
First CI / build (win-x64) (push) Failing after 1m17s
2025-11-21 14:08:12 +01:00
Student Politechniki
12e3dc5f98 updated ci.yml
All checks were successful
First CI / build (win-x64) (push) Successful in 1m5s
First CI / build (linux-x64) (push) Successful in 1m22s
2025-11-21 14:01:51 +01:00
Student Politechniki
33e37e8fe2 fixed ci.yml
All checks were successful
First CI / build (push) Successful in 1m41s
First CI / test (push) Successful in 14s
2025-11-21 13:54:12 +01:00
Student Politechniki
f3f5794958 fixed ci.yml
Some checks failed
First CI / build (push) Failing after 15s
First CI / test (push) Failing after 15s
2025-11-21 13:52:16 +01:00
Student Politechniki
f15cc3bcdf updated ci.yml
Some checks failed
First CI / build (push) Successful in 1m46s
First CI / test (push) Failing after 8s
2025-11-21 13:43:26 +01:00
Student Politechniki
01848a0ea9 updated ci.yml
Some checks failed
First CI / test (push) Failing after 9s
First CI / build (push) Successful in 1m5s
2025-11-21 13:40:12 +01:00
Student Politechniki
fb8a413cb6 Added .net console app 2025-11-21 13:37:07 +01:00
4 changed files with 23 additions and 11 deletions

View File

@@ -4,12 +4,18 @@ on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: build using gcc - uses: actions/setup-dotnet@v3
run: gcc -Wall -Werror main.c -o program with:
- name: Archive production artifacts dotnet-version: "8.0.x"
- run: dotnet restore
- run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
- name: Archive artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: program name: app-${{ matrix.rid }}
path: program path: app

2
Program.cs Normal file
View File

@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

10
lab7.csproj Normal file
View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

6
main.c
View File

@@ -1,6 +0,0 @@
#include <stdio.h>
int main()
{
printf("Halo, Welt!");
return 0;
}