Skip to content

Commit

Permalink
macOS: install under /usr/local
Browse files Browse the repository at this point in the history
  • Loading branch information
windytan committed Jul 25, 2024
1 parent 0fdb4de commit 71c6635
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
push:
branches: [ master ]
branches: [ master, dev ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
Expand Down Expand Up @@ -81,13 +81,15 @@ jobs:
- name: Install dependencies (brew)
run: brew install meson libsndfile liquid-dsp nlohmann-json catch2 perl
- name: meson setup
run: meson setup -Dwerror=true -Db_sanitize=address,undefined -Db_lundef=false build
run: meson setup -Dwerror=true -Db_sanitize=address,undefined -Db_lundef=false build --prefix=/usr/local
- name: compile
run: cd build && meson compile
- name: install
run: cd build && meson install
- name: test
run: cd build && meson test
- name: Test command-line interface
run: perl test/cli.pl build/redsea
run: perl test/cli.pl redsea --installed

build-windows-msys2-mingw:
runs-on: windows-latest
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,16 @@ keep the main branch stable.

### Compile redsea

Linux:

$ meson setup build && cd build && meson compile

macOS:

$ meson setup build --prefix=/usr/local && cd build && meson compile

You can then install the binary using `meson install`.

If you cloned the repository you can later get the latest updates and recompile:

$ git pull
Expand Down

0 comments on commit 71c6635

Please sign in to comment.