Skip to content

Build LLVM nightly #852

Build LLVM nightly

Build LLVM nightly #852

name: Build LLVM nightly
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 3 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
CI-LLVM-nightly:
runs-on: ubuntu-22.04
container:
image: ubuntu:rolling
steps:
- run: apt-get update
- run: apt-get -qq install -y gcc g++ wget lsb-release wget software-properties-common gnupg git cmake flex python3-pebble python3-psutil python3-chardet python3-pytest vim unifdef sudo
- uses: rui314/setup-mold@v1
- run: ld --version
- run: nproc
- run: wget https://apt.llvm.org/llvm.sh
- run: chmod +x llvm.sh
- run: ./llvm.sh 20
- run: apt-get install -y bolt-20 clang-20 libclang-common-20-dev libclang-20-dev mlir-20-tools llvm-20-tools libclang-common-20-dev libclang-20-dev libclang1-20 clang-format-20 python3-clang-20 clangd-20 clang-tidy-20 libomp-20-dev
# TODO: remove in the future
- run: touch /usr/lib/llvm-20/lib/libLibcTableGenUtil.a
- uses: actions/checkout@v4
- run: mkdir objdir
- run: cmake ..
working-directory: objdir
- run: make -j`nproc` VERBOSE=1
working-directory: objdir
- run: pytest
working-directory: objdir