Add win32, cleanup

This commit is contained in:
falkTX 2021-07-18 20:10:48 +01:00
parent cd5b188d91
commit 395185848f
1 changed files with 31 additions and 11 deletions

View File

@ -19,13 +19,10 @@ jobs:
submodules: recursive submodules: recursive
- name: Set up dependencies - name: Set up dependencies
run: | run: |
sudo apt-get install -yq libasound2-dev libpulse-dev liblo-dev libgl1-mesa-dev sudo apt-get install -yq libasound2-dev libgl1-mesa-dev liblo-dev libpulse-dev
- name: Build Linux native - name: Build Linux x64
env:
CFLAGS: -mtune=generic -msse -msse2 -mfpmath=sse
CXXFLAGS: -mtune=generic -msse -msse2 -mfpmath=sse
run: | run: |
make NOOPT=true make
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: linux x64 name: linux x64
@ -57,6 +54,31 @@ jobs:
!bin/*-ladspa.dylib !bin/*-ladspa.dylib
!bin/*-dssi.dylib !bin/*-dssi.dylib
win32:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up dependencies
run: |
sudo apt-get install -yq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable
- name: Build win32 cross-compiled
env:
CC: i686-w64-mingw32-gcc
CXX: i686-w64-mingw32-g++
EXE_WRAPPER: wine
PKG_CONFIG: "false"
run: |
make
- uses: actions/upload-artifact@v2
with:
name: win32
path: |
bin/*
!bin/*-ladspa.dll
!bin/*-dssi.dll
win64: win64:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
@ -65,20 +87,18 @@ jobs:
submodules: recursive submodules: recursive
- name: Set up dependencies - name: Set up dependencies
run: | run: |
sudo apt-get install -yq binfmt-support binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable sudo apt-get install -yq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
- name: Build win64 cross-compiled - name: Build win64 cross-compiled
env: env:
CC: x86_64-w64-mingw32-gcc CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++ CXX: x86_64-w64-mingw32-g++
CFLAGS: -mtune=generic -msse -msse2 -mfpmath=sse EXE_WRAPPER: wine
CXXFLAGS: -mtune=generic -msse -msse2 -mfpmath=sse
LDFLAGS: -static -static-libgcc -static-libstdc++
PKG_CONFIG: "false" PKG_CONFIG: "false"
run: | run: |
make make
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: macOS universal name: win64
path: | path: |
bin/* bin/*
!bin/*-ladspa.dll !bin/*-ladspa.dll