Skip to content

Commit

Permalink
Only build clang-14 on linux-amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
bduffany committed Oct 26, 2023
1 parent 16a011c commit a269b9d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 51 deletions.
120 changes: 69 additions & 51 deletions .github/workflows/clang-tools-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,65 +8,83 @@ jobs:
build:
strategy:
matrix:
clang-version: [ 3.9, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12.0.1, 13, 14, 15, 16 ]
os: [ linux, macosx, windows ]
clang-version:
# - 3.9
# - 4
# - 5
# - 6
# - 7
# - 8
# - 9
# - 10
# - 11
# - 12
# - 12.0.1
# - 13
- 14
# - 15
# - 16
os:
- linux
# - macosx
# - windows
include:
- clang-version: 3.9
release: llvm-project-3.9.1
- clang-version: 4
release: llvm-project-4.0.1
- clang-version: 5
release: llvm-project-5.0.2
- clang-version: 6
release: llvm-project-6.0.1
- clang-version: 7
release: llvm-project-7.1.0
- clang-version: 8
release: llvm-project-8.0.1
extra-cmake-args: '-DCLANG_ANALYZER_ENABLE_Z3_SOLVER=OFF'
- clang-version: 9
release: llvm-project-9.0.1
extra-cmake-args: '-DLLVM_ENABLE_Z3_SOLVER=OFF'
- clang-version: 10
release: llvm-project-10.0.1
extra-cmake-args: '-DLLVM_ENABLE_Z3_SOLVER=OFF'
- clang-version: 11
release: llvm-project-11.1.0.src
- clang-version: 12
release: llvm-project-12.0.0.src
- clang-version: 12.0.1
release: llvm-project-12.0.1.src
- clang-version: 13
release: llvm-project-13.0.0.src
- clang-version: 14
release: llvm-project-14.0.0.src
- clang-version: 15
release: llvm-project-15.0.2.src
- clang-version: 16
release: llvm-project-16.0.3.src
# - clang-version: 3.9
# release: llvm-project-3.9.1
# - clang-version: 4
# release: llvm-project-4.0.1
# - clang-version: 5
# release: llvm-project-5.0.2
# - clang-version: 6
# release: llvm-project-6.0.1
# - clang-version: 7
# release: llvm-project-7.1.0
# - clang-version: 8
# release: llvm-project-8.0.1
# extra-cmake-args: '-DCLANG_ANALYZER_ENABLE_Z3_SOLVER=OFF'
# - clang-version: 9
# release: llvm-project-9.0.1
# extra-cmake-args: '-DLLVM_ENABLE_Z3_SOLVER=OFF'
# - clang-version: 10
# release: llvm-project-10.0.1
# extra-cmake-args: '-DLLVM_ENABLE_Z3_SOLVER=OFF'
# - clang-version: 11
# release: llvm-project-11.1.0.src
# - clang-version: 12
# release: llvm-project-12.0.0.src
# - clang-version: 12.0.1
# release: llvm-project-12.0.1.src
# - clang-version: 13
# release: llvm-project-13.0.0.src
# - clang-version: 14
# release: llvm-project-14.0.0.src
# - clang-version: 15
# release: llvm-project-15.0.2.src
# - clang-version: 16
# release: llvm-project-16.0.3.src
- os: linux
runner: ubuntu-20.04
os-cmake-args: '-DLLVM_BUILD_STATIC=ON -DCMAKE_CXX_FLAGS="-s -flto" ${POSIX_CMAKE_ARGS}'
build-args: '-j$(nproc)'
bindir: '/build/bin'
dotexe: ''
shacmd: 'sha512sum'
- os: macosx
runner: macos-11
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS}'
build-args: '-j$(sysctl -n hw.ncpu)'
bindir: '/build/bin'
dotexe: ''
shacmd: 'shasum -a512'
- os: windows
runner: windows-latest
os-cmake-args: '-Thost=x64 -DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
build-args: '--config MinSizeRel'
bindir: '/build/MinSizeRel/bin'
dotexe: '.exe'
shacmd: 'sha512sum.exe'
extra-tar-args: '--exclude=${RELEASE}/clang/test/Driver/Inputs/* --exclude=${RELEASE}/libcxx/test/std/input.output/filesystems/Inputs/static_test_env/* --exclude=${RELEASE}/libclc/amdgcn-mesa3d'
extra-tar-args-cfe: '--exclude=cfe-${version}.src/test/Driver/Inputs/*'
# - os: macosx
# runner: macos-11
# os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS}'
# build-args: '-j$(sysctl -n hw.ncpu)'
# bindir: '/build/bin'
# dotexe: ''
# shacmd: 'shasum -a512'
# - os: windows
# runner: windows-latest
# os-cmake-args: '-Thost=x64 -DCMAKE_CXX_FLAGS="/MP /std:c++14" -DLLVM_USE_CRT_MINSIZEREL="MT"'
# build-args: '--config MinSizeRel'
# bindir: '/build/MinSizeRel/bin'
# dotexe: '.exe'
# shacmd: 'sha512sum.exe'
# extra-tar-args: '--exclude=${RELEASE}/clang/test/Driver/Inputs/* --exclude=${RELEASE}/libcxx/test/std/input.output/filesystems/Inputs/static_test_env/* --exclude=${RELEASE}/libclc/amdgcn-mesa3d'
# extra-tar-args-cfe: '--exclude=cfe-${version}.src/test/Driver/Inputs/*'
runs-on: ${{ matrix.runner }}
env:
COMMON_CMAKE_ARGS: '-DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*

0 comments on commit a269b9d

Please sign in to comment.