Skip to content

Commit 0a530b7

Browse files
committed
workaround for ncurses riscv64 build failure
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 0f5cb4b commit 0a530b7

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@ jobs:
5454
- name: Setup dependencies
5555
shell: bash
5656
run: |
57+
# workaround for ncurses riscv64 build failure
58+
if [[ "${{ matrix.target }}" = "riscv64" ]]; then
59+
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | tee -a /etc/apt/sources.list
60+
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list
61+
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list
62+
apt-get update -qq
63+
apt-get purge -yqq libncurses-dev
64+
apt-get install -yqq wget
65+
wget \
66+
http://kx.studio/tmp/libtinfo6_6.3-2ubuntu0.1_amd64.deb \
67+
http://kx.studio/tmp/libncurses6_6.3-2ubuntu0.1_amd64.deb \
68+
http://kx.studio/tmp/libncursesw6_6.3-2ubuntu0.1_amd64.deb \
69+
&& dpkg -i *.deb && rm *.deb
70+
apt-get install -yqq libtinfo6:riscv64
71+
fi
5772
./deps/PawPaw/.github/workflows/bootstrap-deps.sh linux-${{ matrix.target }}
5873
apt-get install -yqq wget zip
5974
- name: Setup dependencies (aarch64)

0 commit comments

Comments
 (0)