add build and release workflows

This commit is contained in:
leetcode-mafia
2023-04-26 14:44:56 -04:00
parent b4027f260d
commit 5a770e059d
3 changed files with 104 additions and 10 deletions

32
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build
on:
workflow_call:
pull_request:
branches:
- main
jobs:
arm64_ventura:
runs-on: macos-13
steps:
- run: |
brew fetch --force --bottle-tag=arm64_ventura sdl2
brew install $(brew --cache --bottle-tag=arm64_ventura sdl2)
sudo mkdir -p /opt/homebrew/lib
sudo ln -s /usr/local/lib/libSDL2.a /opt/homebrew/lib/libSDL2.a
- uses: actions/checkout@v3
with:
path: cheetah
- uses: actions/checkout@v3
with:
repository: ggerganov/whisper.cpp
ref: v1.3.0
path: whisper.cpp
- run: |
cd cheetah
xcodebuild -scheme Cheetah -configuration Release -destination generic/platform=macOS -derivedDataPath build
cd build/Build/Products/Release
zip -r Cheetah.zip Cheetah.app
- uses: actions/upload-artifact@v3
with:
name: Cheetah
path: cheetah/build/Build/Products/Release/Cheetah.zip