File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 4848 arch : arm
4949 - cc : gcc
5050 arch : arm64
51+ - cc : clang
52+ arch : arm
53+ - cc : clang
54+ arch : arm64
5155 fail-fast : false
5256 env :
5357 ARTIFACT : webui-linux-${{ matrix.cc }}-${{ matrix.arch }}
@@ -60,21 +64,32 @@ jobs:
6064 fail-on-cache-miss : true
6165 - name : Setup
6266 run : |
67+ sudo apt update
68+ if [ "${{ matrix.cc }}" == "clang" ]; then
69+ sudo apt install -y clang lld
70+ fi
71+
6372 CC=${{ matrix.cc }}
6473 if [ "${{ matrix.arch }}" == "arm64" ]; then
65- sudo apt update
6674 sudo apt install -y gcc-aarch64-linux-gnu
67- CC=aarch64-linux-gnu-gcc
75+ if [ "$CC" = "clang" ]; then
76+ CC="clang --target=aarch64-linux-gnu"
77+ else
78+ CC=aarch64-linux-gnu-gcc
79+ fi
6880 wget https://github.com/openssl/openssl/releases/download/openssl-3.3.1/openssl-3.3.1.tar.gz
6981 tar -xzf openssl-3.3.1.tar.gz
7082 cd openssl-3.3.1
7183 ./Configure linux-generic64 --prefix=/usr/aarch64-linux-gnu --cross-compile-prefix=aarch64-linux-gnu- --release -latomic
7284 make
7385 sudo make install
7486 elif [ "${{ matrix.arch }}" == "arm" ]; then
75- sudo apt update
7687 sudo apt install -y gcc-arm-linux-gnueabi
77- CC=arm-linux-gnueabi-gcc
88+ if [ "$CC" = "clang" ]; then
89+ CC="clang --target=arm-linux-gnueabi"
90+ else
91+ CC=arm-linux-gnueabi-gcc
92+ fi
7893 wget https://github.com/openssl/openssl/releases/download/openssl-3.3.1/openssl-3.3.1.tar.gz
7994 tar -xzf openssl-3.3.1.tar.gz
8095 cd openssl-3.3.1
You can’t perform that action at this time.
0 commit comments