Skip to content

Commit a9f0377

Browse files
committed
github: build: Install llvm-tools for tests with rustc LLVM
All assembly tests depend on FileCheck, which has to be installed through the llvm-tools package. Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
1 parent 5755996 commit a9f0377

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ jobs:
7575
sudo apt-get update
7676
sudo apt-get install llvm-${{ matrix.llvm }}-dev libclang-${{ matrix.llvm }}-dev
7777
78+
- name: Install LLVM tools
79+
if: matrix.llvm == 'rustc'
80+
shell: bash
81+
run: |
82+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
83+
echo -e "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main\n" | sudo tee /etc/apt/sources.list.d/llvm.list
84+
sudo apt-get update
85+
sudo apt-get install llvm-15-tools
86+
7887
- name: Build
7988
run: cargo build --verbose ${CARGO_ARGS}
8089

0 commit comments

Comments
 (0)