summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2021-07-31 13:43:56 +0100
committerfalkTX <falktx@falktx.com>2021-07-31 13:43:56 +0100
commitd4a1c7b49b904e7f9e047dc4f858fefcc05d7320 (patch)
treef5457e239ccac5ec3752e0afc1c681b7dd99dda1
parent745796692c4c0a8929d3c3dd14cebbd56efc96d9 (diff)
downloadjack2-d4a1c7b49b904e7f9e047dc4f858fefcc05d7320.tar.gz
Correct win32 build commands
Signed-off-by: falkTX <falktx@falktx.com>
-rw-r--r--.github/workflows/build.yml48
1 files changed, 31 insertions, 17 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 58d714a4..b40ad03e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -35,8 +35,8 @@ jobs:
shell: bash
run: |
if [ ! -d PawPaw ]; then
- git clone https://github.com/DISTRHO/PawPaw.git
- git -C PawPaw checkout ${PAWPAW_VERSION}
+ git clone https://github.com/DISTRHO/PawPaw.git
+ git -C PawPaw checkout ${PAWPAW_VERSION}
fi
./PawPaw/bootstrap-jack2.sh macos && ./PawPaw/.cleanup.sh macos
- name: Build jack2
@@ -73,10 +73,17 @@ jobs:
shell: bash
run: |
if [ ! -d PawPaw ]; then
- git clone https://github.com/DISTRHO/PawPaw.git
- git -C PawPaw checkout ${PAWPAW_VERSION}
+ git clone https://github.com/DISTRHO/PawPaw.git
+ git -C PawPaw checkout ${PAWPAW_VERSION}
fi
./PawPaw/bootstrap-jack2.sh macos-universal && ./PawPaw/.cleanup.sh macos-universal
+ - name: Build jack2
+ shell: bash
+ run: |
+ pushd PawPaw && source local.env macos-universal && popd
+ python ./waf configure --platform=darwin --prefix=/usr/local
+ python ./waf build -j $(sysctl -n hw.logicalcpu)
+ python ./waf install --destdir="$(pwd)/destdir"
# linux with win32 cross-compilation
win32:
@@ -96,26 +103,26 @@ jobs:
key: cache-win32
- name: Set up dependencies
run: |
- wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - && \
- sudo dpkg --add-architecture i386 && \
- sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
+ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
+ sudo dpkg --add-architecture i386
+ sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt-get install -y autopoint build-essential curl cmake jq llvm mingw-w64 qttools5-dev-tools winehq-stable xvfb \
binutils-mingw-w64-i686 g++-mingw-w64-i686
- name: Bootstrap win32 cross-compiled
shell: bash
run: |
if [ ! -d PawPaw ]; then
- git clone https://github.com/DISTRHO/PawPaw.git
- git -C PawPaw checkout ${PAWPAW_VERSION}
+ git clone https://github.com/DISTRHO/PawPaw.git
+ git -C PawPaw checkout ${PAWPAW_VERSION}
fi
./PawPaw/bootstrap-jack2.sh win32 && ./PawPaw/.cleanup.sh win32
- name: Build jack2
shell: bash
run: |
pushd PawPaw && source local.env win32 && popd
- wine ~/PawPawBuilds/targets/win32/bin/python3.exe ./waf configure --platform=win32 --prefix="$(pwd)/destdir" --static
- wine ~/PawPawBuilds/targets/macos/bin/python3.exe ./waf build -j $(nproc)
- wine ~/PawPawBuilds/targets/macos/bin/python3.exe ./waf install
+ ./waf configure --platform=win32 --prefix="$(pwd)/destdir" --static
+ ./waf build -j $(nproc)
+ ./waf install
# linux with win64 cross-compilation
win64:
@@ -135,16 +142,23 @@ jobs:
key: cache-win64
- name: Set up dependencies
run: |
- wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - && \
- sudo dpkg --add-architecture i386 && \
- sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
+ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
+ sudo dpkg --add-architecture i386
+ sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt-get install -y autopoint build-essential curl cmake jq llvm mingw-w64 qttools5-dev-tools winehq-stable xvfb \
binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64
- name: Bootstrap win64 cross-compiled
shell: bash
run: |
if [ ! -d PawPaw ]; then
- git clone https://github.com/DISTRHO/PawPaw.git
- git -C PawPaw checkout ${PAWPAW_VERSION}
+ git clone https://github.com/DISTRHO/PawPaw.git
+ git -C PawPaw checkout ${PAWPAW_VERSION}
fi
./PawPaw/bootstrap-jack2.sh win64 && ./PawPaw/.cleanup.sh win64
+ - name: Build jack2
+ shell: bash
+ run: |
+ pushd PawPaw && source local.env win32 && popd
+ ./waf configure --platform=win32 --prefix="$(pwd)/destdir" --static
+ ./waf build -j $(nproc)
+ ./waf install