diff --git a/.github/workflows/pub.yml b/.github/workflows/pub.yml index 2bf5a629..57390d72 100644 --- a/.github/workflows/pub.yml +++ b/.github/workflows/pub.yml @@ -13,18 +13,18 @@ jobs: fail-fast: false matrix: include: - - platform: 'macos-latest' # for Arm based macs (M1 and above). - args: '--target aarch64-apple-darwin' - - platform: 'macos-latest' # for Intel based macs. - args: '--target x86_64-apple-darwin' - - platform: 'ubuntu-20.04' # for x86_64 linux - args: '' + # - platform: 'macos-latest' # for Arm based macs (M1 and above). + # args: '--target aarch64-apple-darwin' + # - platform: 'macos-latest' # for Intel based macs. + # args: '--target x86_64-apple-darwin' + # - platform: 'ubuntu-20.04' # for x86_64 linux + # args: '' - platform: 'ubuntu-20.04' # for ARMv7 linux - args: '--target armv7-unknown-linux-gnueabi' - - platform: 'ubuntu-20.04' # for ARM64 linux - args: '--target aarch64-unknown-linux-gnu' - - platform: 'windows-latest' - args: '' + args: '--target armv7-unknown-linux-gnueabihf' + # - platform: 'ubuntu-20.04' # for ARM64 linux + # args: '--target aarch64-unknown-linux-gnu' + # - platform: 'windows-latest' + # args: '' runs-on: ${{ matrix.platform }} steps: @@ -41,12 +41,23 @@ jobs: # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' # This must match the platform value defined above. + - name: install dependencies (ubuntu x86 only) + if: matrix.platform == 'ubuntu-20.04' && matrix.args == '' # This must match the platform value defined above. run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + - name: install dependencies (ubuntu ARMv7 only) + if: matrix.platform == 'ubuntu-20.04' && matrix.args == '--target armv7-unknown-linux-gnueabihf' # This must match the platform value defined above. + run: | + sudo apt-get update + sudo rustup target add armv7-unknown-linux-gnueabi + sudo apt install gcc-arm-linux-gnueabihf + sudo dpkg --add-architecture armhf + sudo apt-get update && sudo apt-get upgrade -y + sudo apt install libwebkit2gtk-4.0-dev:armhf libappindicator3-dev:armhf librsvg2-dev:armhf patchelf:armhf libssl-dev:armhf + export PKG_CONFIG_SYSROOT_DIR=/usr/arm-linux-gnueabihf/ + - name: install frontend dependencies run: npm install # change this to npm or pnpm depending on which one you use