Skip to content

Commit

Permalink
Update pub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilaz authored Jun 29, 2024
1 parent f6ad830 commit ab23177
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit ab23177

Please sign in to comment.