Skip to content

Commit b509a8b

Browse files
committed
CI: Bump llvm version
1 parent c385fdb commit b509a8b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
1111
# oldest and newest supported LLVM version
12-
clang_version: [10.0.0, 15.0.7]
12+
clang_version: [10.0.0, 15.0.0]
1313
steps:
1414
- uses: actions/checkout@v1
1515
with:
@@ -62,7 +62,20 @@ jobs:
6262
echo "CC=$CLANG_DIR/clang" >> $GITHUB_ENV
6363
echo "AR=$CLANG_DIR/llvm-ar" >> $GITHUB_ENV
6464
echo "NM=$CLANG_DIR/llvm-nm" >> $GITHUB_ENV
65-
if: matrix.os == 'ubuntu-latest'
65+
if: matrix.os == 'ubuntu-latest' && matrix.clang_version == '10.0.0'
66+
67+
# use rhel-8.4 asset as ubuntu asset is not available for this release
68+
- name: Install LLVM tools (Linux)
69+
shell: bash
70+
run: |
71+
curl -sSfL https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ matrix.clang_version }}/clang+llvm-${{ matrix.clang_version }}-x86_64-linux-gnu-rhel-8.4.tar.xz | tar xJf -
72+
export CLANG_DIR=`pwd`/clang+llvm-${{ matrix.clang_version }}-x86_64-linux-gnu-rhel-8.4/bin
73+
echo "$CLANG_DIR" >> $GITHUB_PATH
74+
echo "CLANG_DIR=$CLANG_DIR" >> $GITHUB_ENV
75+
echo "CC=$CLANG_DIR/clang" >> $GITHUB_ENV
76+
echo "AR=$CLANG_DIR/llvm-ar" >> $GITHUB_ENV
77+
echo "NM=$CLANG_DIR/llvm-nm" >> $GITHUB_ENV
78+
if: matrix.os == 'ubuntu-latest' && matrix.clang_version == '15.0.0'
6679

6780
- name: Build libc
6881
shell: bash

0 commit comments

Comments
 (0)