Skip to content

Commit

Permalink
chore: add crossbuild-essential
Browse files Browse the repository at this point in the history
  • Loading branch information
idootop committed Mar 21, 2024
1 parent 90bfc5a commit 4f6d7fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@ jobs:
sudo apt install -y libwebkit2gtk-4.1-dev libgtk-3-dev patchelf librsvg2-dev libappindicator3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
elif [ "${{ matrix.target }}" = "i686-unknown-linux-gnu" ]; then
sudo dpkg --add-architecture i386
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install -y pkg-config-i686-linux-gnu
sudo apt update
sudo apt install -y crossbuild-essential-i386 pkg-config-i686-linux-gnu
sudo apt install -y gcc-multilib g++-multilib lib32stdc++6 libc6-dev-i386 libssl-dev:i386
sudo apt install -y libwebkit2gtk-4.0-dev:i386 libgtk-3-dev:i386 librsvg2-dev:i386
export PKG_CONFIG_PATH=/usr/lib/i686-linux-gnu/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=/usr/i686-linux-gnu/
export PKG_CONFIG_ALLOW_CROSS=1
elif [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
sudo dpkg --add-architecture arm64
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install -y pkg-config-aarch64-linux-gnu
sudo apt update
sudo apt install -y crossbuild-essential-arm64 pkg-config-aarch64-linux-gnu
sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross libssl-dev:arm64
sudo apt install -y libwebkit2gtk-4.0-dev:arm64 libgtk-3-dev:arm64 patchelf:arm64 librsvg2-dev:arm64 libayatana-appindicator3-dev:arm64
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
Expand All @@ -269,8 +269,8 @@ jobs:
export PKG_CONFIG_ALLOW_CROSS=1
elif [ "${{ matrix.target }}" = "armv7-unknown-linux-gnueabihf" ]; then
sudo dpkg --add-architecture armhf
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install -y pkg-config-arm-linux-gnueabihf
sudo apt update
sudo apt install -y crossbuild-essential-armhf pkg-config-arm-linux-gnueabihf
sudo apt install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-dev-armhf-cross libssl-dev:armhf
sudo apt install -y libwebkit2gtk-4.0-dev:armhf libgtk-3-dev:armhf patchelf:armhf librsvg2-dev:armhf libayatana-appindicator3-dev:armhf
export CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
Expand Down

0 comments on commit 4f6d7fc

Please sign in to comment.