mirror of https://github.com/llvm/torch-mlir
parent
3e0c1cf6af
commit
578d0ec292
|
@ -16,7 +16,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Test and maybe Publish (Release Asserts)
|
name: Build and Test (Release Asserts)
|
||||||
|
# Changes to the name of this job needs to be synced with releaseSnapshotPackage.yml.
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Get torch-mlir
|
- name: Get torch-mlir
|
||||||
|
@ -91,7 +92,7 @@ jobs:
|
||||||
release_id: ${{ github.event.inputs.release_id }}
|
release_id: ${{ github.event.inputs.release_id }}
|
||||||
|
|
||||||
build-out-of-tree:
|
build-out-of-tree:
|
||||||
name: Build and Test out-of-tree (Release Asserts)
|
name: Build out-of-tree (Release Asserts)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Get torch-mlir
|
- name: Get torch-mlir
|
||||||
|
@ -102,6 +103,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
cache-suffix: '-out-of-tree'
|
cache-suffix: '-out-of-tree'
|
||||||
- name: Build LLVM (standalone)
|
- name: Build LLVM (standalone)
|
||||||
|
# This build takes a while but is expected to almost always be cached.
|
||||||
|
# A cache invalidation occurs when the committed LLVM version is changed.
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
cmake -Bllvm-build -GNinja \
|
cmake -Bllvm-build -GNinja \
|
||||||
|
@ -131,13 +134,5 @@ jobs:
|
||||||
.
|
.
|
||||||
ninja -Cbuild check-torch-mlir-all
|
ninja -Cbuild check-torch-mlir-all
|
||||||
|
|
||||||
- name: RefBackend - TorchScript end-to-end tests
|
# Don't run python tests, as check-torch-mlir-all already checks
|
||||||
run: |
|
# what we want.
|
||||||
cd $GITHUB_WORKSPACE
|
|
||||||
export PYTHONPATH="$GITHUB_WORKSPACE/build/python_packages/torch_mlir"
|
|
||||||
python -m e2e_testing.torchscript.main --config=refbackend -v
|
|
||||||
- name: TOSA backend - TorchScript end-to-end tests
|
|
||||||
run: |
|
|
||||||
cd $GITHUB_WORKSPACE
|
|
||||||
export PYTHONPATH="$GITHUB_WORKSPACE/build/python_packages/torch_mlir"
|
|
||||||
python -m e2e_testing.torchscript.main --config=tosa -v
|
|
||||||
|
|
Loading…
Reference in New Issue