Skip to content

Commit 004dbfd

Browse files
committed
ci: linux deps
1 parent ec724bf commit 004dbfd

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -77,43 +77,44 @@ jobs:
7777
run: |
7878
PKGS=""
7979
80-
# if [ "${{ inputs.target_environment }}" == "musl" ]; then
81-
# case "${{ inputs.target_cpu }}" in
82-
# x86)
83-
# PKGS="g++-12 g++-12-multilib"
84-
# ;;
80+
if [ "${{ inputs.target_environment }}" == "musl" ]; then
81+
case "${{ inputs.target_cpu }}" in
82+
x86)
83+
PKGS="g++-12 g++-12-multilib"
84+
;;
8585
86-
# x64)
87-
# PKGS="g++-12"
88-
# ;;
86+
x64)
87+
PKGS="g++-12"
88+
;;
8989
90-
# arm)
91-
# PKGS="g++-12"
92-
# ;;
90+
arm)
91+
PKGS="g++-12"
92+
;;
9393
94-
# arm64)
95-
# PKGS="g++-12"
96-
# ;;
97-
# esac
98-
# else
99-
# case "${{ inputs.target_cpu }}" in
100-
# arm)
101-
# PKGS="libc6-i386 gcc-12-multilib g++-12-arm-linux-gnueabihf gcc-12-arm-linux-gnueabihf"
102-
# ;;
94+
arm64)
95+
PKGS="g++-12"
96+
;;
97+
esac
98+
else
99+
case "${{ inputs.target_cpu }}" in
100+
arm)
101+
PKGS="libc6-i386 gcc-12-multilib g++-12-arm-linux-gnueabihf gcc-12-arm-linux-gnueabihf"
102+
;;
103103
104-
# arm64)
105-
# PKGS="libc6-i386 gcc-12-multilib g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu"
106-
# ;;
104+
arm64)
105+
# PKGS="libc6-i386 gcc-12-multilib g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu"
106+
PKGS="gcc-12-multilib"
107+
;;
107108
108-
# x86)
109-
# PKGS="g++-12-multilib"
110-
# ;;
109+
x86)
110+
PKGS="g++-12-multilib"
111+
;;
111112
112-
# x64)
113-
# PKGS="g++-12"
114-
# ;;
115-
# esac
116-
# fi
113+
x64)
114+
PKGS="g++-12"
115+
;;
116+
esac
117+
fi
117118
118119
sudo apt-get update
119120
sudo apt-get install -y cmake pkg-config $PKGS

0 commit comments

Comments
 (0)