Compare commits

..

2 Commits

Author SHA1 Message Date
d45d2cbd8e Change CI to include Windows
All checks were successful
First CI / build (linux-x64) (push) Successful in 1m18s
First CI / build (win-x64) (push) Successful in 1m31s
2023-12-01 11:32:15 +01:00
c2f8fe35a0 Change CI to publish the app and run it in a separate job
All checks were successful
First CI / build (push) Successful in 1m28s
First CI / test (push) Successful in 16s
2023-12-01 11:22:42 +01:00

View File

@@ -4,15 +4,18 @@ 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: '6.0.x' dotnet-version: '6.0.x'
- run: dotnet restore - run: dotnet restore
- run: dotnet build - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true,AssemblyName=app
- run: tar cf ${{ matrix.rid }}.tar app/
test: - uses: actions/upload-artifact@v3
steps: with:
- name: Trying to run name: ${{ matrix.rid }}.tar
run: dotnet run path: ${{ matrix.rid }}.tar