Skip to content

Commit

Permalink
Update build-linux.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinJohnWilliams authored Mar 23, 2023
1 parent ee65bd3 commit 6003efa
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 6003efa

Please sign in to comment.