Enable LTO for CI builds; Fix non-debug build
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
680719799d
commit
4b45e69e1a
2 changed files with 35 additions and 6 deletions
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
LDFLAGS: -static-libgcc -static-libstdc++
|
LDFLAGS: -static-libgcc -static-libstdc++
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
LDFLAGS: -static-libgcc -static-libstdc++
|
LDFLAGS: -static-libgcc -static-libstdc++
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
@ -113,7 +113,7 @@ jobs:
|
||||||
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
|
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
@ -140,7 +140,34 @@ jobs:
|
||||||
LDFLAGS: -static-libgcc -static-libstdc++
|
LDFLAGS: -static-libgcc -static-libstdc++
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
|
- name: Set sha8
|
||||||
|
id: slug
|
||||||
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
|
||||||
|
path: |
|
||||||
|
bin/*
|
||||||
|
|
||||||
|
linux-x86_64-debug:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Set up dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -yq libasound2-dev libcairo2-dev libgl1-mesa-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
|
||||||
|
# extra for vcv deps
|
||||||
|
sudo apt-get install -yq libxi-dev libxinerama-dev
|
||||||
|
- name: Build linux x86_64 (debug)
|
||||||
|
env:
|
||||||
|
LDFLAGS: -static-libgcc -static-libstdc++
|
||||||
|
run: |
|
||||||
|
make features
|
||||||
|
make DEBUG=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
@ -204,7 +231,7 @@ jobs:
|
||||||
WINEDEBUG: "-all"
|
WINEDEBUG: "-all"
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
@ -235,7 +262,7 @@ jobs:
|
||||||
WINEDEBUG: "-all"
|
WINEDEBUG: "-all"
|
||||||
run: |
|
run: |
|
||||||
make features
|
make features
|
||||||
make -j $(nproc)
|
make WITH_LTO=true -j $(nproc)
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,9 @@ struct StaticPluginLoader {
|
||||||
file(nullptr),
|
file(nullptr),
|
||||||
rootJ(nullptr)
|
rootJ(nullptr)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
DEBUG("Loading plugin module %s", name);
|
DEBUG("Loading plugin module %s", name);
|
||||||
|
#endif
|
||||||
|
|
||||||
p->path = asset::pluginPath(name);
|
p->path = asset::pluginPath(name);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue