Files
Anton Ovod e2ea75ff8c
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m42s
First CI / build (win-x64) (push) Successful in 1m43s
First CI / test (push) Successful in 9s
Multiplatform ci pipeline fix
2025-11-20 13:11:58 +01:00

34 lines
1013 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 -r ${{ 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