Skip to content

Commit

Permalink
Add github actions to test iree-integration branch (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasvasilache committed Mar 14, 2022
1 parent 72c7894 commit 666f740
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/buildAndTestIreeIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- iree-integration
pull_request:
branches:
- main
- iree-integration
workflow_dispatch:

jobs:
Expand All @@ -24,7 +22,7 @@ jobs:
- name: Checkout project
uses: actions/checkout@v2
with:
path: sandbox
path: sandbox-iree-integration
- name: Checkout IREE
uses: actions/checkout@v2
with:
Expand All @@ -37,7 +35,7 @@ jobs:
# fetch (by a lot), so we get the commit hash and check it out ourselves.
- name: Get LLVM Commit Hash
id: get_llvm_commit_hash
run: echo "LLVM_COMMIT=$(cat ${GITHUB_WORKSPACE}/sandbox/pinned-llvm-version)" >> $GITHUB_ENV
run: echo "LLVM_COMMIT=$(cat ${GITHUB_WORKSPACE}/sandbox-iree-integration/pinned-llvm-version)" >> $GITHUB_ENV
- name: Checkout llvm-project
uses: actions/checkout@v2
with:
Expand All @@ -48,7 +46,7 @@ jobs:

- name: Install Python depends
run: |
python -m pip install -r ${GITHUB_WORKSPACE}/sandbox/requirements.txt
python -m pip install -r ${GITHUB_WORKSPACE}/sandbox-iree-integration/requirements.txt
- name: Install Ninja
uses: llvm/actions/install-ninja@55d844821959226fab4911f96f37071c1d4c3268
- name: Ccache for C++ compilation
Expand All @@ -60,14 +58,14 @@ jobs:

- name: Build
run: |
cd ${GITHUB_WORKSPACE}/sandbox
cd ${GITHUB_WORKSPACE}/sandbox-iree-integration
# Always build with iree/iree-dialects on the iree/sandbox branch.
python configure.py --llvm-path=../llvm-project --iree-path=../iree --iterators --build_dir=build_iree_integration
python configure.py --llvm-path=../llvm-project --iree-path=../iree --iterators
ccache -s
echo "IREE_LLVM_SANDBOX_BUILD_DIR=${GITHUB_WORKSPACE}/sandbox/build" >> $GITHUB_ENV
echo "IREE_LLVM_SANDBOX_BUILD_DIR=${GITHUB_WORKSPACE}/sandbox-iree-integration/build" >> $GITHUB_ENV
- name: Test
run: |
cd ${GITHUB_WORKSPACE}/sandbox
cd ${GITHUB_WORKSPACE}/sandbox-iree-integration
python run_tests.py --iterators-tests

0 comments on commit 666f740

Please sign in to comment.