Fix: Poprawa wersji .NET i konfiguracja artefaktów
This commit is contained in:
@@ -8,21 +8,34 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
- run: dotnet restore
|
- run: dotnet restore
|
||||||
- run: dotnet build
|
- run: dotnet build
|
||||||
|
|
||||||
|
|
||||||
|
- run: dotnet publish -o app -r linux-x64 --sc -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:
|
test:
|
||||||
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
name: app.tar
|
||||||
|
|
||||||
- name: trying to run
|
- run: tar xf app.tar/app.tar || tar xf app.tar
|
||||||
run: dotnet run
|
|
||||||
|
- run: chmod +x app/app
|
||||||
|
|
||||||
|
- run: ./app/app
|
||||||
Reference in New Issue
Block a user