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

@@ -2,15 +2,28 @@ name: First CI
on: [push] on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
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
with: - uses: actions/setup-dotnet@v3
dotnet-version: '8.0.x' with:
- run: dotnet restore dotnet-version: '8.0.x'
- run: dotnet publish ./Lab7.csproj -c Release -o app -r ${{ matrix.rid }} -p:PublishSingleFile=true -p:AssemblyName=app
- run: dotnet restore
- 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