magda 7c1a6c54a2
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m58s
First CI / build (win-x64) (push) Successful in 1m31s
the last one
2023-11-21 17:39:32 +01:00

25 lines
611 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: '6.0.x'
- run: dotnet restore
- run: dotnet build
- run: dotnet test
- run: dotnet publish -o lastApp -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true,AssemblyName=lastApp
- run: tar cf lastApp.tar lastApp/
- uses: actions/upload-artifact@v3
with:
name: lastApp.tar
path: lastApp.tar