From 6003efabb863b09eb63cf91e5e3ef3a67a0bfd3a Mon Sep 17 00:00:00 2001 From: Justin Williams Date: Thu, 23 Mar 2023 11:37:40 -0500 Subject: [PATCH] Update build-linux.yaml --- .github/workflows/build-linux.yaml | 32 ++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index fb776a9..09e1dfc 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -20,7 +20,7 @@ jobs: with: dotnet-version: 6.0.x - - name: Build Console App + - name: Build Console App for Linux run: dotnet build openai-playground/openai-playground.csproj -c Release -r linux-x64 - name: Create Release @@ -35,7 +35,7 @@ jobs: draft: false prerelease: false - - name: Upload Release Asset + - name: Upload Linux Release Asset if: startsWith(github.ref, 'refs/tags/v') uses: actions/upload-release-asset@v1 env: @@ -45,3 +45,31 @@ jobs: asset_path: openai-playground/bin/Release/net6.0/linux-x64/openai-playground asset_name: openai-playground-linux-x64 asset_content_type: application/octet-stream + + - name: Build Console App for macOS (arm64) + run: dotnet build openai-playground/openai-playground.csproj -c Release -r osx-arm64 + + - name: Upload macOS (arm64) Release Asset + if: startsWith(github.ref, 'refs/tags/v') + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: openai-playground/bin/Release/net6.0/osx-arm64/openai-playground + asset_name: openai-playground-macos-arm64 + asset_content_type: application/octet-stream + + - name: Build Console App for macOS (x86_64) + run: dotnet build openai-playground/openai-playground.csproj -c Release -r osx-x64 + + - name: Upload macOS (x86_64) Release Asset + if: startsWith(github.ref, 'refs/tags/v') + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: openai-playground/bin/Release/net6.0/osx-x64/openai-playground + asset_name: openai-playground-macos-x64 + asset_content_type: application/octet-stream