Compare commits

..

9 Commits

Author SHA1 Message Date
Nela-cat
384de16708 Fix matrix expression in dotnet publish
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m5s
First CI / build (win-x64) (push) Successful in 1m6s
2025-11-18 00:11:56 +01:00
Nela-cat
6fbe5c5612 Add matrix build for win and linux
Some checks failed
First CI / build (linux-x64) (push) Failing after 46s
First CI / build (win-x64) (push) Failing after 48s
2025-11-18 00:06:37 +01:00
Nela-cat
c640b07d98 Fix test job: add checkout before download-artifact
All checks were successful
First CI / build (push) Successful in 1m47s
First CI / test (push) Successful in 14s
2025-11-17 23:56:01 +01:00
Nela-cat
ce561cca8f Add artifact-based .NET build and test
Some checks failed
First CI / test (push) Failing after 13s
First CI / build (push) Successful in 1m30s
2025-11-17 23:46:57 +01:00
Nela-cat
4da3205320 Add .NET build and test jobs
Some checks failed
First CI / build (push) Successful in 59s
First CI / test (push) Failing after 3s
2025-11-17 23:41:54 +01:00
Nela-cat
30c95e783a Create .NET console app
All checks were successful
First CI / build (push) Successful in 21s
2025-11-17 23:38:59 +01:00
Nela-cat
4ad999e0fc Add artifact upload step
All checks were successful
First CI / build (push) Successful in 11s
2025-11-17 23:28:14 +01:00
Nela-cat
b9c00472c6 Fix C program by including stdio.h
All checks were successful
First CI / build (push) Successful in 9s
2025-11-17 23:12:15 +01:00
Nela-cat
ba9c534cd6 Add C compilation to CI and create main.c 2025-11-17 23:10:26 +01:00
4 changed files with 35 additions and 2 deletions

View File

@@ -5,6 +5,19 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps:
- name: Printing hello
run: echo "Hello"
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- run: dotnet restore
- run: dotnet publish -o app -r ${{ matrix.rid }} --self-contained true /p:PublishSingleFile=true

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
citest.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>

8
main.c Normal file
View File

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