Skip to content

Commit

Permalink
Merge pull request #144 from OpenBrickProtocolFoundation/142-update-t…
Browse files Browse the repository at this point in the history
…o-llvm-18

update to clang / llvm 18
  • Loading branch information
Totto16 authored May 11, 2024
2 parents ecc8144 + c237aa4 commit fb1ecf4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Setup Android SDK
uses: android-actions/setup-android@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: 17
version: 18
platform: x64

- name: Prepare compile_commands.json
Expand All @@ -39,7 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
version: 17
version: 18
database: build
files-changed-only: ${{ github.event_name != 'workflow_dispatch' }}
lines-changed-only: ${{ github.event_name != 'workflow_dispatch' }}
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt-get install libc++-17* libc++abi*17* -y
echo "CC=clang-17" >> "$GITHUB_ENV"
echo "CXX=clang++-17" >> "$GITHUB_ENV"
echo "OBJC=clang-17" >> "$GITHUB_ENV"
sudo ./llvm.sh 18
sudo apt-get install libc++-18* libc++abi*18* -y
echo "CC=clang-18" >> "$GITHUB_ENV"
echo "CXX=clang++-18" >> "$GITHUB_ENV"
echo "OBJC=clang-18" >> "$GITHUB_ENV"
- name: Setup GCC (Linux)
Expand All @@ -123,7 +123,7 @@ jobs:
if: matrix.config.os == 'macos'
run: |
brew update
brew install llvm@17
brew install llvm@18
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -L$(brew --prefix)/opt/llvm/lib/c++ -Wl,-rpath,$(brew --prefix)/opt/llvm/lib/c++" >> "$GITHUB_ENV"
echo "CPPFLAGS=-I$(brew --prefix)/opt/llvm/include" >> "$GITHUB_ENV"
Expand All @@ -134,19 +134,10 @@ jobs:
echo "CXX_LD=lld" >> "$GITHUB_ENV"
echo "OBJC_LD=lld" >> "$GITHUB_ENV"
- name: Unbreak Python in GHA for 3.11 (MacOS 13 image)
if: matrix.config.os == 'macos' && matrix.config.os-version == 13
run: |
# A workaround for "The `brew link` step did not complete successfully" error.
# See https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
- name: Setup meson (MacOS)
if: matrix.config.os == 'macos'
run: |
brew update
brew update
brew install meson
- name: Setup meson
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt-get install libc++-17* libc++abi*17* llvm-17 -y
echo "CC=clang-17" >> "$GITHUB_ENV"
echo "CXX=clang++-17" >> "$GITHUB_ENV"
sudo ./llvm.sh 18
sudo apt-get install libc++-18* libc++abi*18* llvm-18 -y
echo "CC=clang-18" >> "$GITHUB_ENV"
echo "CXX=clang++-18" >> "$GITHUB_ENV"
- name: Setup meson
run: |
Expand Down

0 comments on commit fb1ecf4

Please sign in to comment.