@@ -26,26 +26,26 @@ jobs:
26
26
strategy :
27
27
matrix :
28
28
config :
29
- - name : darwin
29
+ - name : macOS
30
30
os : macos-latest
31
31
os-cmake-args : ' -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang'
32
32
build-args : ' -j$(sysctl -n hw.ncpu)'
33
33
bindir : ' /build/bin'
34
- arch : amd64
35
- - name : windows
34
+ arch : 64bit
35
+ - name : Windows
36
36
os : windows-latest
37
37
os-cmake-args : ' -DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
38
38
build-args : ' --config MinSizeRel'
39
39
bindir : ' /build/MinSizeRel/bin'
40
40
extra-tar-args : ' --exclude=${{ needs.get-version.outputs.llvm-version }}/clang/test/Driver/Inputs/* --exclude=${{ needs.get-version.outputs.llvm-version }}/libcxx/test/std/input.output/filesystems/Inputs/static_test_env/* --exclude=${{ needs.get-version.outputs.llvm-version }}/libclc/amdgcn-mesa3d'
41
- arch : 386
41
+ arch : 32bit
42
42
extension : .exe
43
- - name : windows
43
+ - name : Windows
44
44
os : windows-latest
45
45
os-cmake-args : ' -Thost=x64 -DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
46
46
build-args : ' --config MinSizeRel'
47
47
bindir : ' /build/MinSizeRel/bin'
48
- arch : amd64
48
+ arch : 64bit
49
49
extra-tar-args : ' --exclude=${{ needs.get-version.outputs.llvm-version }}/clang/test/Driver/Inputs/* --exclude=${{ needs.get-version.outputs.llvm-version }}/libcxx/test/std/input.output/filesystems/Inputs/static_test_env/* --exclude=${{ needs.get-version.outputs.llvm-version }}/libclc/amdgcn-mesa3d'
50
50
extension : .exe
51
51
env :
@@ -91,17 +91,17 @@ jobs:
91
91
strategy :
92
92
matrix :
93
93
config :
94
- - name : linux
95
- arch : amd64
94
+ - name : Linux
95
+ arch : 64bit
96
96
os-cmake-args : ' -DCMAKE_CXX_COMPILER=x86_64-ubuntu16.04-linux-gnu-g++ -DCMAKE_C_COMPILER=x86_64-ubuntu16.04-linux-gnu-gcc'
97
- - name : linux
98
- arch : 386
97
+ - name : Linux
98
+ arch : 32bit
99
99
os-cmake-args : ' -DCMAKE_CXX_COMPILER=i686-ubuntu16.04-linux-gnu-g++ -DCMAKE_C_COMPILER=i686-ubuntu16.04-linux-gnu-gcc'
100
- - name : linux
101
- arch : arm
100
+ - name : Linux
101
+ arch : ARMv6
102
102
os-cmake-args : ' -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CROSSCOMPILING=True -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DLLVM_TABLEGEN=/tmp/llvm-tblgen -DCLANG_TABLEGEN=/tmp/clang-tblgen'
103
- - name : linux
104
- arch : arm64
103
+ - name : Linux
104
+ arch : ARM64
105
105
os-cmake-args : ' -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CROSSCOMPILING=True -DLLVM_TARGET_ARCH=AArch64 -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AArch64 -DLLVM_TABLEGEN=/tmp/llvm-tblgen -DCLANG_TABLEGEN=/tmp/clang-tblgen'
106
106
107
107
container :
@@ -130,7 +130,7 @@ jobs:
130
130
cp -v bin/llvm-tblgen /tmp
131
131
cp -v bin/clang-tblgen /tmp
132
132
rm -rf *
133
- if : matrix.config.arch == 'arm ' || matrix.config.arch == 'arm64 '
133
+ if : matrix.config.arch == 'ARMv6 ' || matrix.config.arch == 'ARM64 '
134
134
135
135
- name : build clangd and clang-format
136
136
run : |
@@ -159,12 +159,14 @@ jobs:
159
159
- name : Prepare artifacts for the release
160
160
run : |
161
161
mkdir release
162
- declare -a target_folders=("linux_amd64 " "linux_386 " "linux_arm64 " "linux_arm " "darwin_amd64 " "windows_386 " "windows_amd64 ")
162
+ declare -a target_folders=("Linux_64bit " "Linux_32bit " "Linux_ARM64 " "Linux_ARMv6 " "macOS_64bit " "Windows_32bit " "Windows_64bit ")
163
163
for folder in "${target_folders[@]}"
164
164
do
165
165
chmod -v +x clang_$folder/*
166
- FILENAME=clang-${{ needs.get-version.outputs.tag }}-${folder}.tar.bz2
167
- tar -cvjf $FILENAME clang_$folder/
166
+ CLANGD=clangd_${{ needs.get-version.outputs.tag }}_${folder}.tar.bz2
167
+ CLANGFORMAT=clang-format_${{ needs.get-version.outputs.tag }}_${folder}.tar.bz2
168
+ tar -cvjf $CLANGD clang_$folder/clangd*
169
+ tar -cvjf $CLANGFORMAT clang_$folder/clang-format*
168
170
done
169
171
mv -v clang*.tar.bz2 release/
170
172
0 commit comments