Add .NET build and test workflow with artifact
Some checks failed
First CI / test (push) Failing after 3s
First CI / build (push) Successful in 1m2s

This commit is contained in:
Alicja Kwiatkowska
2025-11-20 00:06:20 +01:00
parent d0e279b288
commit c79fe5e59d

View File

@@ -6,10 +6,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
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
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with: with:
name: program dotnet-version: '8.0.x'
path: program - run: dotnet restore
- run: dotnet build
test:
steps:
- name: trying to run
run: dotnet run