forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b61b77
commit f09a0aa
Showing
2 changed files
with
85 additions
and
17 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,68 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# Checkout mainline commit on local repo and run tests. | ||
name: Adreno Rebase Mainline And Test | ||
|
||
on: | ||
schedule: | ||
# 6:30 AM IST | ||
- cron: "0 1 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: update-mainline-and-test | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
RebaseMainline: | ||
if: github.repository == 'gpgpu/apache-tvm' | ||
runs-on: blr-ubuntu-tvm01 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
- name: Checkout Mainline | ||
run: | | ||
if ! git remote -v | grep ^mainline ; then git remote add mainline git@github.com:apache/tvm.git ; fi | ||
git fetch mainline | ||
- name: Checkout GPGPU | ||
run: | | ||
if ! git remote -v | grep ^gpgpu ; then git remote add gpgpu git@github.qualcomm.com:gpgpu/apache-tvm.git ; fi | ||
git fetch gpgpu | ||
- name: Rebase with Mainline | ||
run: | | ||
git checkout -b rebase-main gpgpu/main | ||
git rebase mainline/main | ||
git submodule update | ||
echo "TVM Commit ID:" `git log --format="%H" -n 1` | ||
for ii in `ls 3rdparty/` ; do cd 3rdparty/$ii; echo "$ii:" `git log --format="%H" -n 1`; cd - > /dev/null 2>&1 ; done | ||
- name: Run Lint | ||
shell: bash -l {0} | ||
run: | | ||
SCCACHE_SERVER_PORT=8767 ./tests/scripts/ci.py lint -d tvm.ci_lint | ||
- name: Build and run tests | ||
shell: bash -l {0} | ||
run: | | ||
git fetch gpgpu | ||
git checkout gpgpu/adreno_ci -- pytest_deselect_ids.txt | ||
git restore --staged pytest_deselect_ids.txt | ||
SCCACHE_SERVER_PORT=8767 ADRENO_OPENCL="/usr/local/workspace/CLML/clml-sdk-3.0" ANDROID_SERIAL=`cat /etc/tvm-ci-device` python ./tests/scripts/ci.py adreno -d tvm.ci_adreno --test | ||
- name: Commit Stable Rebase Version | ||
run: | | ||
git push -u gpgpu rebase-main --force |
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