Skip to content

Commit

Permalink
github: setup test matrix for LLVM API tests (#372)
Browse files Browse the repository at this point in the history
* github: setup test matrix for LLVM API tests

- Add test matrix to run LLVM API tests with the following two LLVM
versions
  - Latest release tag
  - Latest trunk commit

Signed-off-by: Jerry Zhang Jian <[email protected]>

* github: make full use of vCPU when building LLVM

Signed-off-by: Jerry Zhang Jian <[email protected]>

---------

Signed-off-by: Jerry Zhang Jian <[email protected]>
  • Loading branch information
jerryzj authored Oct 17, 2024
1 parent 1e9f86b commit d0669e2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/clang-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
llvm-version: ["main", "latest-rel"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -19,7 +22,14 @@ jobs:
run: |
cd ..
rm -rf llvm-project
git clone https://github.com/llvm/llvm-project
git clone https://github.com/llvm/llvm-project -j `nproc`
- name: Checkout LLVM version
run: |
cd ../llvm-project
if [ "${{ matrix.llvm-version }}" = "latest-rel" ]; then
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag
fi
- name: Build LLVM with Ninja
run: |
cd ../llvm-project
Expand All @@ -34,7 +44,7 @@ jobs:
-DLLVM_DEFAULT_TARGET_TRIPLE="riscv64-unknown-linux-gnu" \
-DLLVM_ENABLE_PROJECTS="clang;lld" \
../llvm
ninja -j 4
ninja -j `nproc`
echo $(pwd)
ls bin
- name: Run compilation test, non-overloaded intrinsics (default (TAMA) policy)
Expand Down

0 comments on commit d0669e2

Please sign in to comment.