dotnet core: try to fix build-linux-glibc-arm

This commit is contained in:
Frank Denis 2022-11-24 19:02:00 +01:00
parent 03137a5817
commit 23b3ca6016

View File

@ -52,41 +52,26 @@ jobs:
runs-on: ubuntu-latest
container:
image: ubuntu:16.04
options: --privileged
steps:
- name: Set up build environment
run: |
export DEBIAN_FRONTEND=noninteractive
cat <<-EOF | tee /etc/apt/sources.list.d/arm64.list >/dev/null
deb [arch=arm64] http://ports.ubuntu.com/ xenial main restricted
deb [arch=arm64] http://ports.ubuntu.com/ xenial-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ xenial universe
deb [arch=arm64] http://ports.ubuntu.com/ xenial-updates universe
deb [arch=arm64] http://ports.ubuntu.com/ xenial multiverse
deb [arch=arm64] http://ports.ubuntu.com/ xenial-updates multiverse
EOF
sed -i 's/deb h/deb [arch=amd64] h/g' /etc/apt/sources.list
apt-get update && apt-get install -y build-essential qemu binfmt-support qemu-user-static qemu-system-arm gcc-aarch64-linux-gnu libc6-arm64-cross
dpkg --add-architecture arm64
apt-get update && apt-get install -y build-essential qemu-user qemu-user-static gcc-aarch64-linux-gnu
update-binfmts --enable qemu-aarch64
update-binfmts --display
ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.* /lib
- uses: actions/checkout@v3
- name: configure
run: ./configure --disable-dependency-tracking --prefix=$PWD/.libsodium-build --host=aarch64-linux-gnu
- name: make
run: make -j $(nproc)
- name: make check
# Disable make check on this platform
if: ${{ false }}
run: |
make check
env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib make check
- name: make install
run: make install
- name: strip
run: aarch64-linux-gnu-strip --strip-all .libsodium-build/lib/libsodium.so
- uses: actions/upload-artifact@v3
@ -95,40 +80,29 @@ jobs:
path: .libsodium-build/lib/libsodium.so
build-linux-glibc-arm:
runs-on: ubuntu-16.04
runs-on: ubuntu-latest
container:
image: ubuntu:16.04
options: --privileged
steps:
- name: Set up build environment
run: |
export DEBIAN_FRONTEND=noninteractive
cat <<-EOF | sudo tee /etc/apt/sources.list.d/armhf.list >/dev/null
deb [arch=armhf] http://ports.ubuntu.com/ xenial main restricted
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates main restricted
deb [arch=armhf] http://ports.ubuntu.com/ xenial universe
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates universe
deb [arch=armhf] http://ports.ubuntu.com/ xenial multiverse
deb [arch=armhf] http://ports.ubuntu.com/ xenial-updates multiverse
EOF
sudo sed -i 's/deb h/deb [arch=amd64] h/g' /etc/apt/sources.list
sudo dpkg --add-architecture armhf
sudo apt-get update && sudo apt-get install -y build-essential qemu-user qemu-user-static gcc-arm-linux-gnueabihf
apt-get update && apt-get install -y build-essential qemu binfmt-support qemu-user-static qemu-system-arm gcc-arm-linux-gnueabihf libc6-armhf-cross
dpkg --add-architecture armhf
update-binfmts --enable qemu-arm
update-binfmts --display
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.* /lib
- uses: actions/checkout@v3
- name: configure
run: ./configure --disable-dependency-tracking --prefix=$PWD/.libsodium-build --host=arm-linux-gnueabihf
- name: make
run: make -j $(nproc)
- name: make check
run: |
make check
env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib make check
- name: make install
run: make install
- name: strip
run: arm-linux-gnueabihf-strip --strip-all .libsodium-build/lib/libsodium.so
- uses: actions/upload-artifact@v3
@ -364,23 +338,16 @@ jobs:
# don't work as expected. As a result, installing on Ubuntu fails during integrity
# checks. As a workaround, the following command disables hardware acceleration for
# gcrypt, which the apt-get command relies on.
mkdir -p /etc/gcrypt && echo all >> /etc/gcrypt/hwf.deny
cat <<-EOF | sudo tee /etc/apt/sources.list.d/multiarch.list >/dev/null
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates multiverse
EOF
sudo sed -i 's/deb h/deb [arch=amd64] h/g' /etc/apt/sources.list
sudo mkdir -p /etc/gcrypt && echo all | sudo tee /etc/gcrypt/hwf.deny
sudo apt-get update && sudo apt-get install -y qemu binfmt-support qemu-user-static qemu-system-arm gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-arm64-cross
sudo dpkg --add-architecture armhf
sudo dpkg --add-architecture arm64
sudo apt-get update && sudo apt-get install -y qemu-user qemu-user-static libstdc++6:armhf libstdc++6:arm64
sudo update-binfmts --enable qemu-aarch64
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --display
sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.* /lib
sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.* /lib
- uses: actions/download-artifact@v3
with: