From bfdc3d574e871e1d635a841dd104a0d11f1348ab Mon Sep 17 00:00:00 2001 From: MidKnightXI Date: Thu, 27 Jun 2024 12:15:03 +0200 Subject: [PATCH] feat: added a job for each platform --- .github/workflows/dotnet-desktop.yml | 13 +++++++++++-- module.json | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 161d6ac..7b74210 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -28,8 +28,17 @@ jobs: - name: Install dependencies run: dotnet restore - - name: Build the project - run: dotnet publish -c Release -r ${{ matrix.os == 'ubuntu-latest' && 'linux-x64' || matrix.os == 'windows-latest' && 'win-x64' || 'osx-arm64' }} --self-contained -p:PublishAot=true + - name: Build the project for Linux + if: matrix.os == 'ubuntu-latest' + run: dotnet publish -c Release -r linux-x64 --self-contained -p:PublishAot=true + + - name: Build the project for Windows + if: matrix.os == 'windows-latest' + run: dotnet publish -c Release -r win-x64 --self-contained -p:PublishAot=true + + - name: Build the project for macOS + if: matrix.os == 'macos-latest' + run: dotnet publish -c Release -r osx-arm64 --self-contained -p:PublishAot=true - name: Archive the build artifacts for Linux if: matrix.os == 'ubuntu-latest' diff --git a/module.json b/module.json index 9b517e3..7f8b63a 100644 --- a/module.json +++ b/module.json @@ -1,6 +1,6 @@ { "name": "WhichCam", - "version": "v2.0.2", + "version": "v2.0.3", "description": "Orders medias by its camera maker or model.", "type": "detection", "arguments": [