Skip to content

Commit

Permalink
ci: linux deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 13, 2024
1 parent 602a318 commit daba65a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,43 +80,45 @@ jobs:
if [ "${{ inputs.target_environment }}" == "musl" ]; then
case "${{ inputs.target_cpu }}" in
x86)
PKGS="g++ g++-multilib"
PKGS="g++-12 g++-12-multilib"
;;
x64)
PKGS="g++"
PKGS="g++-12"
;;
arm)
PKGS="g++"
PKGS="g++-12"
;;
arm64)
PKGS="g++"
PKGS="g++-12"
;;
esac
else
case "${{ inputs.target_cpu }}" in
arm)
PKGS="libc6-i386 gcc-multilib g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf"
PKGS="libc6-i386 gcc-12-multilib g++-12-arm-linux-gnueabihf gcc-12-arm-linux-gnueabihf"
;;
arm64)
PKGS="libc6-i386 gcc-11-multilib g++-11-aarch64-linux-gnu gcc-11-aarch64-linux-gnu"
PKGS="libc6-i386 gcc-12-multilib g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu"
;;
x86)
PKGS="g++-multilib"
PKGS="g++-12-multilib"
;;
x64)
PKGS="g++"
PKGS="g++-12"
;;
esac
fi
sudo apt-get update
sudo apt-get install -y cmake pkg-config $PKGS
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
- name: Install Just
uses: extractions/setup-just@v2
Expand Down

0 comments on commit daba65a

Please sign in to comment.