Change
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m4s
First CI / build (win-x64) (push) Successful in 1m8s

This commit is contained in:
szymon 2024-11-22 11:30:51 +01:00
parent e5dfa1b5d2
commit fc84c7ba86

View File

@ -4,24 +4,29 @@ on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3 - uses: actions/setup-dotnet@v3
with: with:
dotnet-version: '8.0.x' dotnet-version: '8.0.x'
- run: dotnet restore - run: dotnet restore
- run: dotnet build - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
- run: dotnet test
- run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app # - run: dotnet build
- run: tar cf app.tar app/ # - run: dotnet test
- uses: actions/upload-artifact@v3 # - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
with: # - run: tar cf app.tar app/
name: app.tar # - uses: actions/upload-artifact@v3
path: app.tar # with:
test: # name: app.tar
steps: # path: app.tar
- uses: actions/download-artifact@v3 # test:
with: # steps:
name: app.tar # - uses: actions/download-artifact@v3
- run: tar xf app.tar # with:
- run: ./app/app # name: app.tar
# - run: tar xf app.tar
# - run: ./app/app