-
Notifications
You must be signed in to change notification settings - Fork 42
44 lines (41 loc) · 1.5 KB
/
tf-frontend-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: TfFrontend CI
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/tf-frontend-ci.yaml"
- "frontends/tf-frontend/**"
- "compiler/dialects/include/byteir/Dialect/Ace/**"
- "compiler/dialects/lib/Dialect/Ace/**"
- "!**/**.md"
workflow_dispatch:
# Ensure that only a single job or workflow using the same
# concurrency group will run at a time. This would cancel
# any in-progress jobs in the same github workflow and github
# ref (e.g. refs/heads/main or refs/pull/<pr_number>/merge).
concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
tf_frontend_build_and_test:
name: tf-frontend CI
runs-on: self-hosted
container:
image: localhost:5000/byteir-ci
volumes:
- /data00/llvm_libraries:/data00/llvm_libraries
- /data00/mhlo_libraries:/data00/mhlo_libraries
options: --runtime=nvidia --gpus all
steps:
- name: clear workspace
run: rm -rf $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- name: Checkout byteir repo
uses: actions/checkout@v3
- name: Build and test TfFrontend
run: TF_PYTHON_VERSION=3.9 ./frontends/tf-frontend/scripts/build_and_test.sh
shell: bash