UPD: ci.yml
Some checks failed
First CI / build (win-x64) (push) Failing after 48s
First CI / build (linux-x64) (push) Failing after 51s

This commit is contained in:
holek363
2025-11-20 13:58:18 +01:00
parent 894aa227a2
commit 35e4b7fe2b

View File

@@ -9,8 +9,21 @@ jobs:
rid: ["win-x64", "linux-x64"] rid: ["win-x64", "linux-x64"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3 - uses: actions/setup-dotnet@v3
with: with:
dotnet-version: '8.0.x' dotnet-version: '8.0.x'
- run: dotnet restore - run: dotnet restore
- run: dotnet publish ./Lab7.csproj -c Release -o app -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
- name: Publish for ${{ matrix.rid }}
run: dotnet publish ./lab2/Lab7.csproj -c Release -o app-${{ matrix.rid }} -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
- name: Archive artifact
run: tar cf app-${{ matrix.rid }}.tar app-${{ matrix.rid }}/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: app-${{ matrix.rid }}
path: app-${{ matrix.rid }}.tar