Skip to content

update build.yml and add .gitignore #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
dotexe: ''
shacmd: 'sha512sum'
- os: macosx
runner: macos-14
runner: macos-13 # macos intel
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections" -DCMAKE_OSX_DEPLOYMENT_TARGET=11 ${MACOS_CMAKE_ARGS}'
build-args: '-j$(sysctl -n hw.ncpu)'
bindir: '/build/bin'
Expand All @@ -83,11 +83,12 @@ jobs:
COMMON_CMAKE_ARGS: '-DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
MACOS_CMAKE_ARGS: >
-DCMAKE_BUILD_TYPE=MinSizeRel
-DCMAKE_CXX_COMPILER=g++-11
-DCMAKE_C_COMPILER=gcc-11
-DCMAKE_CXX_COMPILER=g++-14
-DCMAKE_C_COMPILER=gcc-14
-DZSTD_STATIC_LINKING_ONLY=1
-DLLVM_ENABLE_ASSERTIONS=OFF
-DZLIB_USE_STATIC_LIBS=ON
-DLLVM_TARGETS_TO_BUILD=X86
LINUX_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10'
RELEASE: '${{ matrix.release }}'
suffix: '${{ matrix.clang-version }}_${{ matrix.os }}-amd64'
Expand Down Expand Up @@ -141,15 +142,12 @@ jobs:
if: ${{ matrix.os == 'macosx' }}
shell: bash
run: |
sed -i.backup 's/gcc_eh.\*|/gcc_eh.*|gcc_ext.*|/g' "$(find /opt/homebrew/Cellar -name CMakeParseImplicitLinkInfo.cmake)"
brew install gcc@11
- name: Update homebrew
if: ${{ matrix.os == 'macosx' && matrix.clang-version >= '18' }}
shell: bash
run: |
brew update
brew upgrade
brew cleanup
BREW_PREFIX=$(brew --prefix)
FILES=$(find "$BREW_PREFIX" -name CMakeParseImplicitLinkInfo.cmake)
for file in $FILES; do
echo "Patching $file"
sed -i.backup 's/gcc_eh.*|/gcc_eh.*|gcc_ext.*|/g' "$file"
done
- name: CMake
run: cmake -S ${{ matrix.release }}/llvm -B ${{ matrix.release }}/build ${{ env.COMMON_CMAKE_ARGS }} ${{ matrix.os-cmake-args }} ${{ matrix.extra-cmake-args }}
- name: Build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Python virtual environment
venv/
./venv/