diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 578e85d6..f94536c9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -103,8 +103,17 @@ jobs: # properly sudo apt-get -yq install libc6-arm64-cross libgcc-s1-arm64-cross - - name: Build deb archives + - name: Build Debian packages if: endsWith(matrix.target, '-linux-gnu') + env: + # The *-arm64-cross packages above install AArch64 libraries in + # /usr//lib instead of /usr/lib/, as expected by + # cargo-deb and dpkg-shlibdeps to find such shared libraries. + # Make both of them visible to such commands by adding that directory + # to the dynamic linker's library search path. See: + # - ("Errors" section) + # - + LD_LIBRARY_PATH: /usr/aarch64-linux-gnu/lib run: | mkdir -p "target/${{ matrix.target }}/release" mv target/oxipng "target/${{ matrix.target }}/release"