-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for ocl-open-140 branch (#327)
1. Update version number and branch names 2. Enable Github Actions 3. Fix build errors Signed-off-by: Haonan Yang <haonan.yang@intel.com>
- Loading branch information
Showing
6 changed files
with
131 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: In-tree build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'ocl-open-*' | ||
paths-ignore: # no need to check build for: | ||
- 'docs/**' # documentation | ||
- '**.md' # README | ||
pull_request: | ||
branches: | ||
- 'ocl-open-*' | ||
paths-ignore: # no need to check build for: | ||
- 'docs/**' # documentation | ||
- '**.md' # README | ||
schedule: | ||
# Weekly build on Mondays | ||
# Ideally, we might want to simplify our regular nightly build as we | ||
# probably don't need every configuration to be built every day: most of | ||
# them are only necessary in pre-commits to avoid breakages | ||
- cron: 0 0 * * 0 | ||
|
||
env: | ||
LLVM_VERSION: 14 | ||
|
||
jobs: | ||
build_and_test_linux: | ||
name: Linux | ||
strategy: | ||
matrix: | ||
build_type: [Release] | ||
include: | ||
- build_type: Release | ||
fail-fast: false | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: setup git config | ||
run: | | ||
git config --global user.email "<>" | ||
git config --global user.name "GitHub Actions Bot" | ||
- name: Checkout LLVM sources | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: llvm/llvm-project | ||
ref: release/14.x | ||
path: llvm-project | ||
- name: Checkout the translator sources | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: KhronosGroup/SPIRV-LLVM-Translator | ||
ref: llvm_release_140 | ||
path: llvm-project/SPIRV-LLVM-Translator | ||
- name: Checkout opencl-clang sources | ||
uses: actions/checkout@v2 | ||
with: | ||
path: llvm-project/opencl-clang | ||
- name: Configure | ||
run: | | ||
mkdir build && cd build | ||
cmake ${{ github.workspace }}/llvm-project/llvm \ | ||
-DLLVM_ENABLE_PROJECTS="clang" \ | ||
-DLLVM_EXTERNAL_PROJECTS="llvm-spirv;opencl-clang" \ | ||
-DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=${{ github.workspace }}/llvm-project/SPIRV-LLVM-Translator \ | ||
-DLLVM_EXTERNAL_OPENCL_CLANG_SOURCE_DIR=${{ github.workspace }}/llvm-project/opencl-clang \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DLLVM_TARGETS_TO_BUILD="X86" \ | ||
-G "Unix Makefiles" | ||
- name: Build | ||
run: | | ||
cd build | ||
make opencl-clang -j2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters