From d72d3dfb609af8d0d11ad346f3c330d52b55c25d Mon Sep 17 00:00:00 2001 From: Ira Hopkinson Date: Thu, 28 Sep 2023 13:15:12 +1300 Subject: [PATCH] - fix macOS build warning --- .github/workflows/package-main.yml | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-main.yml b/.github/workflows/package-main.yml index ab238b55f3..f62c4d6fad 100644 --- a/.github/workflows/package-main.yml +++ b/.github/workflows/package-main.yml @@ -53,6 +53,16 @@ jobs: echo "Updating version from ${CURRENT_VERSION} to ${NEW_VERSION}" npm version $NEW_VERSION + - name: dotnet build - MacOS and Windows + if: ${{ matrix.os == 'macos-latest' }} + run: | + npm run build:data-release:windows + npm run build:data-release:macos + + - name: dotnet build - Linux + if: ${{ matrix.os == 'ubuntu-latest' }} + run: npm run build:data-release:linux + - name: Install DMG license if: ${{ matrix.os == 'macos-latest' }} run: npm install dmg-license diff --git a/package.json b/package.json index 4d06e885c8..51f6ec6bd2 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "build:data-release": "run-script-os", "build:data-release:windows": "dotnet publish c-sharp/ParanextDataProvider.csproj -r win-x64 -o ./c-sharp/bin/Release/net7.0/publish/win-x64/", "build:data-release:linux": "dotnet publish c-sharp/ParanextDataProvider.csproj -r linux-x64 -o ./c-sharp/bin/Release/net7.0/publish/linux-x64/", - "build:data-release:macos": "dotnet publish c-sharp/ParanextDataProvider.csproj -r osx-x64 -o ./c-sharp/bin/Release/net7.0/publish/osx-x64/ && dotnet publish c-sharp/ParanextDataProvider.csproj -p:PublishProfile=FolderProfile -r osx-arm64 -o ./c-sharp/bin/Release/net7.0/publish/osx-arm64/", + "build:data-release:macos": "dotnet publish c-sharp/ParanextDataProvider.csproj -r osx-x64 -o ./c-sharp/bin/Release/net7.0/publish/osx-x64/ && dotnet publish c-sharp/ParanextDataProvider.csproj -r osx-arm64 -o ./c-sharp/bin/Release/net7.0/publish/osx-arm64/", "build:types": "cd lib/papi-dts && npm run build", "build:papi-components": "cd lib/papi-components && npm run build", "csharp:tool:restore": "cd c-sharp && dotnet tool restore",