Skip to content

Commit

Permalink
Use ninja to build llvm, pin Ubuntu version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanlippuner committed Sep 10, 2023
1 parent a3d7d8a commit 5544a84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/build-llvm.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash
set -e

# Install and use ninja because using the default makefiles seems to be broken
sudo apt-get install ninja-build

mkdir -p circt/llvm/build
cd circt/llvm/build
cmake ../llvm \
cmake -G Ninja ../llvm \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_EXAMPLES=OFF \
-DLLVM_ENABLE_ASSERTIONS=ON \
Expand All @@ -14,4 +17,4 @@ cmake ../llvm \
-DLLVM_OPTIMIZED_TABLEGEN=ON \
-DLLVM_TARGETS_TO_BUILD="host"

cmake --build . -- -j$(nproc)
ninja -j$(nproc)
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CI
jobs:
lints:
name: Lints
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -32,7 +32,7 @@ jobs:

check:
name: Checks
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down

0 comments on commit 5544a84

Please sign in to comment.