File tree Expand file tree Collapse file tree 1 file changed +51
-1
lines changed Expand file tree Collapse file tree 1 file changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,60 @@ jobs:
68
68
[ "${{ inputs.target_os }}" != "${{ inputs.target_cpu }}" ] && ARTIFACT="$ARTIFACT-${{ inputs.target_cpu }}"
69
69
[ "${{ inputs.is_debug }}" == "true" ] && ARTIFACT="$ARTIFACT-debug"
70
70
echo "artifact=$ARTIFACT" >> $GITHUB_OUTPUT
71
+
71
72
- name : Checkout this repo
72
73
uses : actions/checkout@v4
73
- - name : Install Tools
74
+
75
+ - name : Install Linux dependencies
76
+ if : ${{ inputs.target_os == 'linux' }}
77
+ run : |
78
+ PKGS=""
79
+
80
+ if [ "${{ inputs.target_environment }}" == "musl" ]; then
81
+ case "${{ inputs.target_cpu }}" in
82
+ x86)
83
+ PKGS="g++ g++-multilib"
84
+ ;;
85
+
86
+ x64)
87
+ PKGS="g++"
88
+ ;;
89
+
90
+ arm)
91
+ PKGS="g++"
92
+ ;;
93
+
94
+ arm64)
95
+ PKGS="g++"
96
+ ;;
97
+ esac
98
+ else
99
+ case "${{ inputs.target_cpu }}" in
100
+ arm)
101
+ PKGS="libc6-i386 gcc-multilib g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf"
102
+ ;;
103
+
104
+ arm64)
105
+ PKGS="libc6-i386 gcc-multilib g++-aarch64-linux-gnu gcc-aarch64-linux-gnu"
106
+ ;;
107
+
108
+ x86)
109
+ PKGS="g++-multilib"
110
+ ;;
111
+
112
+ x64)
113
+ PKGS="g++"
114
+ ;;
115
+ esac
116
+ fi
117
+
118
+ apt-get update
119
+ apt-get install -y cmake pkg-config
120
+ apt-get install -y $PKGS
121
+
122
+ - name : Install Just
74
123
uses : extractions/setup-just@v2
124
+
75
125
- name : Set environment variables
76
126
shell : bash
77
127
run : |
You can’t perform that action at this time.
0 commit comments