Browse Source

Enable LTO for CI builds; Fix non-debug build

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
4b45e69e1a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 35 additions and 6 deletions
  1. +33
    -6
      .github/workflows/build.yml
  2. +2
    -0
      plugins/plugins.cpp

+ 33
- 6
.github/workflows/build.yml View File

@@ -41,7 +41,7 @@ jobs:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
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)"
@@ -80,7 +80,7 @@ jobs:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
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)"
@@ -113,7 +113,7 @@ jobs:
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
run: |
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)"
@@ -140,7 +140,34 @@ jobs:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
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
id: slug
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -204,7 +231,7 @@ jobs:
WINEDEBUG: "-all"
run: |
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)"
@@ -235,7 +262,7 @@ jobs:
WINEDEBUG: "-all"
run: |
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)"


+ 2
- 0
plugins/plugins.cpp View File

@@ -292,7 +292,9 @@ struct StaticPluginLoader {
file(nullptr),
rootJ(nullptr)
{
#ifdef DEBUG
DEBUG("Loading plugin module %s", name);
#endif

p->path = asset::pluginPath(name);



Loading…
Cancel
Save