Skip to content

Commit

Permalink
Add LLVM 14 to CI (#598)
Browse files Browse the repository at this point in the history
* Add LLVM 14 to CI

* Update `build.sh`

* Fix docker entrypoint

Co-authored-by: Eric Kilmer <[email protected]>
  • Loading branch information
tetsuo-cpp and ekilmer committed Jun 7, 2022
1 parent 9b05e6f commit 81478b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
image:
- { name: 'ubuntu', tag: '20.04' }
llvm: ['13']
llvm: ['13', '14']

runs-on: ubuntu-20.04
container:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
fail-fast: false
matrix:
os: ['macos-11']
llvm: ['13']
llvm: ['13', '14']

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
llvm: ["13"]
llvm: ["13", "14"]
ubuntu: ["20.04"]
steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DOWNLOAD_DIR="$( cd "$( dirname "${SRC_DIR}" )" && pwd )/lifting-bits-downloads"
CURR_DIR=$( pwd )
BUILD_DIR="${CURR_DIR}/remill-build"
INSTALL_DIR=/usr/local
LLVM_VERSION=llvm-13
LLVM_VERSION=llvm-14
OS_VERSION=
ARCH_VERSION=
BUILD_FLAGS=
Expand Down Expand Up @@ -272,14 +272,14 @@ function Package
function GetLLVMVersion
{
case ${1} in
12)
LLVM_VERSION=llvm-12
return 0
;;
13)
LLVM_VERSION=llvm-13
return 0
;;
14)
LLVM_VERSION=llvm-14
return 0
;;
*)
# unknown option
echo "[x] Unknown or unsupported LLVM version ${1}. You may be able to manually build it with cxx-common."
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker-lifter-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ case ${LLVM_VERSION} in
llvm13*)
V=13
;;
llvm14*)
V=14
;;
*)
echo "Unknown LLVM version: ${LLVM_VERSION}"
exit 1
Expand Down

0 comments on commit 81478b4

Please sign in to comment.