Zadanie4czescniewiemjuz
All checks were successful
First CI / build (push) Successful in 1m46s
First CI / test (push) Successful in 11s

This commit is contained in:
Kr4ms00n
2025-11-20 16:01:52 +01:00
parent aed9c5c646
commit 13f3f7d13f

View File

@@ -11,17 +11,19 @@ jobs:
- run: dotnet restore
- run: dotnet build
- run: dotnet test
- run: dotnet publish -o app -r linux-x64 --sc/p:PublishSingleFile=true,AssemblyName=app
- run: dotnet publish -o app -r linux-x64 --self-contained /p:PublishSingleFile=true /p:AssemblyName=app
- run: tar cf app.tar app/
- uses: actions/upload-artifact@v3
with:
name: app.tar
path: app.tar
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: app.tar
- run: tar xf app.tar/app.tar
- run: ./app/app
- uses: actions/download-artifact@v3
with:
name: app.tar
- run: tar xf app.tar
- run: chmod +x app/app
- run: ./app/app