Skip to content

Commit

Permalink
Try enabling linux-riscv64 builds
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Sep 9, 2022
1 parent 8d0269e commit 4fa52aa
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/example-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,48 @@ jobs:
path: |
bin/*
linux-riscv64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Fix GitHub's mess
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -qq
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
# sudo apt-get install -yqq --allow-downgrades libegl1/focal libegl-mesa0/focal libglapi-mesa/focal libgl1/focal libgl1-mesa-dri/focal libglvnd0/focal libglx0/focal libglx-mesa0/focal
sudo apt-get purge -yqq libclang* libgbm* libllvm* libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
- name: Set up dependencies
run: |
sudo dpkg --add-architecture riscv64
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-riscv64.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-riscv64.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-riscv64.list
sudo apt-get update -qq
dpkg -l | grep libgl
sudo apt-get install -y g++-riscv64-linux-gnu libasound2-dev:riscv64 libcairo2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglapi-mesa:riscv64 libglvnd0:riscv64 liblo-dev:riscv64 libpulse-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 qemu-user-static
# libgl-dev:riscv64 libgles-dev:riscv64 libglvnd-dev:riscv64 libglx-dev:riscv64 libgl1:riscv64 libegl-dev:riscv64 libegl-dev:riscv64 libglx0:riscv64 libegl1:riscv64 libglx-mesa0:riscv64 libegl-mesa0:riscv64 libglapi-mesa:riscv64 libgl1-mesa-dri:riscv64 libgbm1:riscv64 libllvm12:riscv64
- name: Build linux riscv64 cross-compiled
env:
CC: riscv64-linux-gnu-gcc
CXX: riscv64-linux-gnu-g++
LDFLAGS: -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig
run: |
make features
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-riscv64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
bin/*
linux-x86_64:
runs-on: ubuntu-20.04
steps:
Expand Down
5 changes: 5 additions & 0 deletions distrho/src/DistrhoPluginCLAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
#include "DistrhoPluginInternal.hpp"
#include "extra/ScopedPointer.hpp"

#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL) && ! DISTRHO_PLUGIN_HAS_EXTERNAL_UI
# undef DISTRHO_PLUGIN_HAS_UI
# define DISTRHO_PLUGIN_HAS_UI 0
#endif

#if DISTRHO_PLUGIN_HAS_UI
# include "DistrhoUIInternal.hpp"
# include "../extra/Mutex.hpp"
Expand Down

0 comments on commit 4fa52aa

Please sign in to comment.