From 2d7187030750981ae75e3aff7b90cec1e1818f20 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 9 Oct 2023 19:22:14 +0800 Subject: [PATCH] PATCH: fix libatomic.so.1 not found --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5590bb156..5446a598b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -277,6 +277,34 @@ jobs: name: "android" runs-on: ubuntu-latest steps: + - name: Show ubuntu libraries + run: | + if [[ -d "/usr/lib/i386-linux-gnu" ]]; then + echo "/usr/lib/i386-linux-gnu exists." + ls -la /usr/lib/i386-linux-gnu/libatomic.so.1* + else + echo "/usr/lib/i386-linux-gnu doesn't not exist." + fi + + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt-get install -y libc6:i386 libstdc++6:i386 libatomic1:i386 + + if [[ -d "/usr/lib/i386-linux-gnu" ]]; then + echo "/usr/lib/i386-linux-gnu exists." + ls -la /usr/lib/i386-linux-gnu/ + ls -la /usr/lib/i386-linux-gnu/libatomic.so.1* + else + echo "/usr/lib/i386-linux-gnu doesn't not exist." + fi + + if [[ -d "/usr/lib/x86_64-linux-gnu" ]]; then + echo "/usr/lib/x86_64-linux-gnu exists." + ls -la /usr/lib/x86_64-linux-gnu/libatomic.so.1* + else + echo "/usr/lib/x86_64-linux-gnu doesn't not exist." + fi + - name: Checkout uses: actions/checkout@v3