Skip to content

Commit

Permalink
feat: LLVM suite on the GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRustifyer committed Aug 21, 2024
1 parent f146626 commit 9cd87d2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/project_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest }
- { os: ubuntu-latest, clang_version: 19 }
# - { os: macos-latest }
# - { os: windows-latest }

Expand All @@ -28,11 +28,23 @@ jobs:
repository: 'Zork'
branch: 'feature/GH-127-clang-upgrades'

- name: Download the latest possible version of Clang
- name: Installing LLVM ${{ matrix.clang_version }}
run: |
sudo apt update
sudo apt install clang-18 --install-suggests
sudo apt install libc++-18-dev libc++abi-18-dev
# Exit on error
set -e
# Download and execute the LLVM installation script for the specified Clang version
echo "-----> Downloading and executing the LLVM installation script for Clang ${{ matrix.clang_version }}"
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.clang_version }}
echo "-----> Installing libc++"
sudo apt-get install -y libc++-${{ matrix.clang_version }}-dev libc++abi-${{ matrix.clang_version }}-dev libunwind-${{ matrix.clang_version }} libunwind-${{ matrix.clang_version }}-dev libc6 libzstd1
# Update the symbolic link to point to the newly installed Clang version
echo "-----> Updating the symbolic link to point to Clang ${{ matrix.clang_version }}"
sudo rm -f /usr/bin/clang++
sudo ln -s /usr/bin/clang++-${{ matrix.clang_version }} /usr/bin/clang++
- name: Generate a Zork++ release build
run: |
Expand Down

0 comments on commit 9cd87d2

Please sign in to comment.