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