diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ef23da..4ee3d49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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)" diff --git a/plugins/plugins.cpp b/plugins/plugins.cpp index a7ee821..53554c3 100644 --- a/plugins/plugins.cpp +++ b/plugins/plugins.cpp @@ -292,7 +292,9 @@ struct StaticPluginLoader { file(nullptr), rootJ(nullptr) { +#ifdef DEBUG DEBUG("Loading plugin module %s", name); +#endif p->path = asset::pluginPath(name);