Skip to content

Refactor ChatView and MessageView for improved performance and UI #99

Refactor ChatView and MessageView for improved performance and UI

Refactor ChatView and MessageView for improved performance and UI #99

Workflow file for this run

name: Build
permissions:
contents: write
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build:
runs-on: macOS-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4 # Updated to v4
# Import macOS code-signing certificates
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.MACOS_CERTS_P12 }}
p12-password: ${{ secrets.P12_PASSWORD }}
# Optional: Install Dependencies
- name: Install Dependencies
run: |
brew install create-dmg
# Optional: Set Xcode Version
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
# Build Xcode Project for both architectures
- name: Build Xcode Project
run: |
xcodebuild -project "Amazon Bedrock Client for Mac.xcodeproj" \
-scheme "Amazon Bedrock Client for Mac" \
-configuration Release \
-arch x86_64 -arch arm64 \
-derivedDataPath DerivedData \
ONLY_ACTIVE_ARCH=NO
# Package as DMG
- name: Package as DMG
run: |
export APP_PATH="$(pwd)/DerivedData/Build/Products/Release/Amazon Bedrock.app"
create-dmg --window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "Amazon Bedrock.app" 200 190 \
--hide-extension "Amazon Bedrock.app" \
--app-drop-link 600 185 \
'Amazon Bedrock Client for Mac.dmg' "$APP_PATH"
# Upload Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4 # Updated to v4
with:
name: "Amazon Bedrock Client for Mac"
path: "Amazon Bedrock Client for Mac.dmg"
release:
needs: build
runs-on: macOS-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download Artifact
uses: actions/download-artifact@v4 # Updated to v3
with:
name: Amazon Bedrock Client for Mac
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: Amazon Bedrock Client for Mac.dmg