Skip to content

Commit 0a614a6

Browse files
committed
use naming convention of the arduino CLI for release binaries and split clangd and clang-format in two different archives
1 parent f342668 commit 0a614a6

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@ jobs:
2626
strategy:
2727
matrix:
2828
config:
29-
- name: darwin
29+
- name: macOS
3030
os: macos-latest
3131
os-cmake-args: '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang'
3232
build-args: '-j$(sysctl -n hw.ncpu)'
3333
bindir: '/build/bin'
34-
arch: amd64
35-
- name: windows
34+
arch: 64bit
35+
- name: Windows
3636
os: windows-latest
3737
os-cmake-args: '-DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
3838
build-args: '--config MinSizeRel'
3939
bindir: '/build/MinSizeRel/bin'
4040
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
4242
extension: .exe
43-
- name: windows
43+
- name: Windows
4444
os: windows-latest
4545
os-cmake-args: '-Thost=x64 -DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
4646
build-args: '--config MinSizeRel'
4747
bindir: '/build/MinSizeRel/bin'
48-
arch: amd64
48+
arch: 64bit
4949
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'
5050
extension: .exe
5151
env:
@@ -91,17 +91,17 @@ jobs:
9191
strategy:
9292
matrix:
9393
config:
94-
- name: linux
95-
arch: amd64
94+
- name: Linux
95+
arch: 64bit
9696
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
9999
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
102102
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
105105
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'
106106

107107
container:
@@ -130,7 +130,7 @@ jobs:
130130
cp -v bin/llvm-tblgen /tmp
131131
cp -v bin/clang-tblgen /tmp
132132
rm -rf *
133-
if: matrix.config.arch == 'arm' || matrix.config.arch == 'arm64'
133+
if: matrix.config.arch == 'ARMv6' || matrix.config.arch == 'ARM64'
134134

135135
- name: build clangd and clang-format
136136
run: |
@@ -159,12 +159,14 @@ jobs:
159159
- name: Prepare artifacts for the release
160160
run: |
161161
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")
163163
for folder in "${target_folders[@]}"
164164
do
165165
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*
168170
done
169171
mv -v clang*.tar.bz2 release/
170172

0 commit comments

Comments
 (0)