Skip to content

WIP Migrate from autotools to meson #47

WIP Migrate from autotools to meson

WIP Migrate from autotools to meson #47

Workflow file for this run

name: build
on:
push:
branches: [ master, meson ]
pull_request:
branches: [ master ]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies (apt)
run: sudo apt install python3-pip ninja-build libsndfile1-dev libliquid-dev
- name: Install meson (pip3)
run: pip3 install --user meson
- name: meson setup
run: meson setup build
- name: compile
run: cd build && meson compile
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies (brew)
run: brew install meson libsndfile liquid-dsp
- name: meson setup
run: meson setup build
- name: compile
run: cd build && meson compile
windows-msys2-build:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autoconf
automake
git
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-libiconv
mingw-w64-x86_64-libsndfile
mingw-w64-x86_64-meson
mingw-w64-x86_64-python3
- name: Patch & build liquid-dsp
shell: msys2 {0}
run: |
git clone https://github.com/jgaeddert/liquid-dsp.git && cd liquid-dsp
perl -i -p -e 's/(AC_CHECK_LIB\(\[c\].+| sys\/resource.h)//g' configure.ac
./bootstrap.sh && ./configure --prefix=/mingw64 && make
make install
- uses: actions/checkout@v4
- name: Build redsea
shell: msys2 {0}
run: |
meson setup build && cd build && meson compile
- name: Package into distrib
shell: msys2 {0}
run: |
mkdir -p distrib && cp build/redsea.exe distrib/
ldd build/redsea.exe | grep -iv windows | grep -iv system32 | grep -v :$ | cut -f2 -d\> | cut -f1 -d\( | awk '{$1=$1};1' | xargs -I{} cp {} distrib/