From 251a85e976691e480427a6182d22deeb4b0a3ead Mon Sep 17 00:00:00 2001 From: WJG Date: Thu, 21 Mar 2024 00:01:46 +0800 Subject: [PATCH] chore: sudo for apt-get --- .github/workflows/desktop.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/desktop.yaml b/.github/workflows/desktop.yaml index 8b734f0..d2e9e03 100644 --- a/.github/workflows/desktop.yaml +++ b/.github/workflows/desktop.yaml @@ -192,10 +192,10 @@ jobs: fail-fast: false matrix: include: - - target: x86_64-unknown-linux-gnu - build: linux - os: ubuntu-latest - arch: x86_64 + # - target: x86_64-unknown-linux-gnu + # build: linux + # os: ubuntu-latest + # arch: x86_64 - target: i686-unknown-linux-gnu build: linux os: ubuntu-latest @@ -232,17 +232,17 @@ jobs: sudo apt-get update sudo apt-get 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 - dpkg --add-architecture i386 - apt-get update - apt-get install -y libstdc++6:i386 libgdk-pixbuf2.0-dev:i386 libatomic1:i386 gcc-multilib g++-multilib libssl-dev:i386 \ + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt-get install -y libstdc++6:i386 libgdk-pixbuf2.0-dev:i386 libatomic1:i386 gcc-multilib g++-multilib libssl-dev:i386 \ libwebkit2gtk-4.0-dev:i386 libgtk-3-dev:i386 patchelf:i386 librsvg2-dev:i386 libayatana-appindicator3-dev:i386 export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/:$PKG_CONFIG_PATH export PKG_CONFIG_SYSROOT_DIR=/ elif [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then - dpkg --add-architecture arm64 - apt-get update - apt-get install -y libncurses6:arm64 libtinfo6:arm64 linux-libc-dev:arm64 libncursesw6:arm64 libcups2:arm64 - apt-get install -y --no-install-recommends g++-aarch64-linux-gnu libc6-dev-arm64-cross libssl-dev:arm64 \ + sudo dpkg --add-architecture arm64 + sudo apt-get update + sudo apt-get install -y libncurses6:arm64 libtinfo6:arm64 linux-libc-dev:arm64 libncursesw6:arm64 libcups2:arm64 + sudo apt-get install -y --no-install-recommends g++-aarch64-linux-gnu libc6-dev-arm64-cross libssl-dev:arm64 \ 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 export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc @@ -250,10 +250,10 @@ jobs: export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig export PKG_CONFIG_ALLOW_CROSS=1 elif [ "${{ matrix.target }}" = "armv7-unknown-linux-gnueabihf" ]; then - dpkg --add-architecture armhf - apt-get update - apt-get install -y libncurses6:armhf libtinfo6:armhf linux-libc-dev:armhf libncursesw6:armhf libcups2:armhf - apt-get install -y --no-install-recommends g++-arm-linux-gnueabihf libc6-dev-armhf-cross libssl-dev:armhf \ + sudo dpkg --add-architecture armhf + sudo apt-get update + sudo apt-get install -y libncurses6:armhf libtinfo6:armhf linux-libc-dev:armhf libncursesw6:armhf libcups2:armhf + sudo apt-get install -y --no-install-recommends g++-arm-linux-gnueabihf libc6-dev-armhf-cross libssl-dev:armhf \ 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 export CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc