Files
lab7/.gitea/workflows/ci.yml
Liliia Hurko 142360a356
All checks were successful
First CI / build (win-x64) (push) Successful in 1m56s
First CI / build (linux-x64) (push) Successful in 2m1s
Macierz i artefakty
2025-11-21 14:19:22 +01:00

30 lines
661 B
YAML

name: First CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- run: dotnet restore
- run: dotnet publish -o app -r ${{ matrix.rid }} --sc -p:PublishSingleFile=true -p:AssemblyName=app
- run: tar cf app-${{ matrix.rid }}.tar app/
- uses: actions/upload-artifact@v3
with:
name: app-${{ matrix.rid }}
path: app-${{ matrix.rid }}.tar