From a615eb6b5e1e2f9482bad75fcd598f1de4bc1cab Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Dec 2020 18:24:03 +1300 Subject: [PATCH] gettin serious on the package debugging --- .cargo/config | 2 ++ .github/workflows/rust.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 00000000..0c1c209f --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.armv7-unknown-linux-gnueabihf] +linker = "arm-linux-gnueabihf-gcc" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5fa72db8..392129ca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -61,7 +61,11 @@ jobs: - name: Install openssl (apt armv7) if: ${{ matrix.os == 'ubuntu-20.04' && matrix.target == 'armv7-unknown-linux-gnueabihf' }} run: | - echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal main universe" | sudo tee /etc/apt/sources.list.d/armhf.list + cat /etc/apt/sources.list{,.d/*.list} + sed -i'' -E 's/^deb http:\/\/(azure.archive|security).ubuntu.com/deb [arch=amd64,i386] http:\/\/\1.ubuntu.com/' /etc/apt/sources.list + sed -i'' -E 's/^deb http:\/\/(azure.archive|security).ubuntu.com/deb [arch=amd64,i386] http:\/\/\1.ubuntu.com/' /etc/apt/sources.list.d/*.list + sudo dpkg --add-architecture armhf + cat /etc/apt/sources.list{,.d/*.list} sudo apt-get update sudo apt-get install -y libssl-dev:armhf libssl1.1:armgf zlib1g-dev:armhf zlib1g:armhf libc-dev:armhf echo "PKG_CONFIG_ALLOW_CROSS=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append