lab7/.gitea/workflows/ci.yml
Michal 73193fade9
Some checks failed
First CI / build (linux-x64) (push) Failing after 54s
First CI / build (win-x64) (push) Failing after 1m0s
Break the code
2024-11-25 11:05:04 +01:00

22 lines
624 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
- 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,AssemblyName=app-${{ matrix.rid }}
- run: tar cf app-${{ matrix.rid }}.tar app-${{ matrix.rid }}/
- uses: actions/upload-artifact@v3
with:
name: app-${{ matrix.rid }}.tar
path: app-${{ matrix.rid }}.tar