Merge pull request #151 from solaoi/main #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-13, macos-14] # macos-13: Intel Mac, macos-14: M1 Mac | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
working-directory: ./src-tauri | |
target-dir: ./src-tauri/target | |
# - name: download Vosk model | |
# run: | | |
# VOSK_MODEL_VERSION=0.22 | |
# curl -LO https://alphacephei.com/vosk/models/vosk-model-ja-$VOSK_MODEL_VERSION.zip | |
# mv vosk-model-ja-$VOSK_MODEL_VERSION.zip ./src-tauri/resources | |
# unzip ./src-tauri/resources/vosk-model-ja-$VOSK_MODEL_VERSION.zip -d ./src-tauri/resources | |
# rm ./src-tauri/resources/vosk-model-ja-$VOSK_MODEL_VERSION.zip | |
# - name: download Whisper model | |
# run: | | |
# curl -LO https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-large.bin | |
# mv ggml-large.bin ./src-tauri/resources | |
- name: install app dependencies | |
run: yarn install --frozen-lockfile | |
- if: matrix.os == 'macos-13' | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
with: | |
tagName: lycoris-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "Lycoris v__VERSION__" | |
releaseBody: "See the assets to download this version and install." | |
releaseDraft: true | |
prerelease: false | |
args: --target x86_64-apple-darwin | |
- if: matrix.os == 'macos-14' | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
with: | |
tagName: lycoris-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "Lycoris v__VERSION__" | |
releaseBody: "See the assets to download this version and install." | |
releaseDraft: true | |
prerelease: false | |
args: --target aarch64-apple-darwin |