-
-
Notifications
You must be signed in to change notification settings - Fork 96
78 lines (66 loc) · 2.22 KB
/
deploy_universal_mac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Release MacOS Universal
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
# Clone the repo
- name: Checkout repository
uses: actions/checkout@v4
# MacOS specific
- name: Cache Homebrew Bundler
if: matrix.platform == 'macos-latest'
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-vibe-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-vibe-
- name: Install homebrew dependencies
if: matrix.platform == 'macos-latest'
run: |
brew install llvm openblas git lz4 libxml2 zlib bzip2 wget
# Setup Rust
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./desktop/src-tauri -> target"
cache-all-crates: true
# Setup NodeJS
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm" # Set this to npm, yarn or pnpm.
cache-dependency-path: desktop/package-lock.json
# Setup NodeJS dependencies
- name: Install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: npm install # Change this to npm, yarn or pnpm.
working-directory: ./desktop
# Setup OpenBlas and FFMPEG
- name: Setup FFMPEG and OpenBlas
run: ./scripts/pre_build.sh
# Build and upload
- name: Build and Upload
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false