Skip to content

Commit

Permalink
Fix issue with arm github action
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiquePaul committed Sep 18, 2024
1 parent 0ffdfa3 commit 3239975
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,26 @@ jobs:
uses: actions/checkout@v4
- name: Setup ARM build environment
run: |
sudo dpkg --add-architecture arm64
sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/arm64.list
sudo sed -i 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i 's/deb http/deb [arch=arm64] http/g' /etc/apt/sources.list.d/arm64.list
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
rustup target add aarch64-unknown-linux-gnu
sudo apt install -y libwebkit2gtk-4.0-dev:arm64 libssl-dev:arm64
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
sudo dpkg --add-architecture arm64
. /etc/os-release
echo "using Ubuntu with codename $VERSION_CODENAME"
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-updates main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME universe" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-updates universe" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-updates multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-security main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-security universe" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports $VERSION_CODENAME-security multiverse" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt upgrade -y
sudo apt install gcc-aarch64-linux-gnu -y
rustup target add aarch64-unknown-linux-gnu
sudo apt install libwebkit2gtk-4.0-dev:arm64 -y
sudo apt install libssl-dev:arm64 -y
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down

0 comments on commit 3239975

Please sign in to comment.