Files
lab7_ci_anton_ovod/.gitea/workflows/ci.yml
Anton Ovod be20cef2cc
Some checks failed
First CI / build (win-x64) (push) Failing after 1m24s
First CI / build (linux-x64) (push) Failing after 1m25s
First CI / test (push) Has been skipped
Multiplatform ci pipeline fix
2025-11-20 13:10:10 +01:00

34 lines
1010 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 build
- run: dotnet test
- run: dotnet publish -o app ${{ matrix.rid }} --sc /p:PublishSingleFile=true,AssemblyName=app
- run: tar cf app-${{ matrix.rid }}.tar app/
- uses: actions/upload-artifact@v3
with:
name: app-${{ matrix.rid }}.tar
path: app-${{ matrix.rid }}.tar
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: app-linux-x64.tar
- run: tar xf app-linux-x64.tar
- run: ./app/app