From 74e32d47b09737432d5ad5b11ce3c887b964a3e6 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 13 May 2025 11:00:16 +0800 Subject: [PATCH] release: add linux arch armhf (#1133) --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64dc64e4..c1aac870 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,11 @@ jobs: release: linux arch: aarch64 rust_target: aarch64-unknown-linux-gnu + - os: ubuntu-22.04-arm + release: linux + arch: armhf + rust_target: arm-unknown-linux-gnueabihf + args: '--target arm-unknown-linux-gnueabihf --bundles deb' - os: macos-latest release: macos arch: aarch64 @@ -133,11 +138,22 @@ jobs: key: ${{ matrix.config.os }}-${{ matrix.config.release }}-${{ matrix.config.arch }}-cargo - name: install dependencies (ubuntu only) - if: contains(matrix.config.os, 'ubuntu') && matrix.config.release != 'android' + if: contains(matrix.config.os, 'ubuntu') && matrix.config.release != 'android' && matrix.config.arch != 'armhf' run: | sudo apt-get update sudo apt-get install -y pkg-config libfontconfig-dev libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils + - name: install dependencies (ubuntu only - armhf specific) + if: contains(matrix.config.os, 'ubuntu') && matrix.config.arch == 'armhf' + run: | + sudo dpkg --add-architecture armhf + sudo apt-get update + sudo apt-get install -y pkg-config libfontconfig-dev:armhf libgtk-3-dev:armhf libwebkit2gtk-4.1-dev:armhf libappindicator3-dev:armhf librsvg2-dev:armhf gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf + echo 'PKG_CONFIG_ALLOW_CROSS=1' >> $GITHUB_ENV + echo 'PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig' >> $GITHUB_ENV + echo 'PKG_CONFIG_SYSROOT_DIR=/usr/arm-linux-gnueabihf' >> $GITHUB_ENV + echo 'CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc' >> $GITHUB_ENV + - name: create .env.local file for Next.js run: | echo "NEXT_PUBLIC_POSTHOG_KEY=${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}" >> .env.local