Skip to content

Commit

Permalink
build action
Browse files Browse the repository at this point in the history
  • Loading branch information
hingobway committed Nov 19, 2024
1 parent a510be7 commit 22cd40e
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build macOS
on:
push:
tags: ['*']
workflow_dispatch:

jobs:
build:
runs-on: macos-latest
steps:
# prepare codebase
- uses: actions/checkout@v4.1.6

# prep system
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: install pnpm
uses: pnpm/action-setup@v4.0.0
with:
version: latest
- name: install node
uses: actions/setup-node@v4.0.2
with:
cache: 'pnpm'
- name: install brew packages
run: brew install rust cmake libsndfile

# cmake build
- name: dependencies
run: |
git submodule update --init
- name: cmake build
run: |
cd src-cpp
cmake -Bbuild
cmake --build build --config Release
# javascript
- name: pnpm install
run:
pnpm install

# compile and upload
- name: bundle
run: pnpm tauri build
- name: upload binary
uses: softprops/action-gh-release@v2.1.0
with:
files: src-tauri/target/release/bundle/dmg/*.dmg

0 comments on commit 22cd40e

Please sign in to comment.