2424 branches : [main]
2525 paths :
2626 - " ML-Frameworks/pytorch-aarch64/**"
27+ - " .github/**"
2728 pull_request :
2829 types : [opened, synchronize, reopened]
2930 paths :
3031 - " ML-Frameworks/pytorch-aarch64/**"
32+ - " .github/**"
3133 # * allow manual trigger of workflow when needed.
3234 workflow_dispatch :
3335
4547 strategy :
4648 matrix :
4749 config : [
48- { name: c7g, label: ah-ubuntu_22_04-c7g_4x-50, threading: OMP, toolset: gcc }
50+ { name: c7g, label: ah-ubuntu_22_04-c7g_4x-50 }
4951 ]
5052
5153 runs-on : ${{ matrix.config.label }}
@@ -54,43 +56,24 @@ jobs:
5456 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5557 with :
5658 path : Tool-Solutions
57-
58- # Note: This will create a github actions cache
59- - name : Get latest CMake and Ninja
60- uses : lukka/get-cmake@56d043d188c3612951d8755da8f4b709ec951ad6 # v3.31.6
61- with :
62- cmakeVersion : 3.31.0
63- ninjaVersion : 1.12.0
64-
65- - name : Install openmp
66- run : |
67- sudo apt install -y libomp-dev
68-
69- - name : Install gcc
70- run : |
71- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
72- sudo apt update -y
73- sudo apt install -y g++-11
74-
75- - name : setup python
76- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
77- with :
78- python-version : ' 3.10'
79-
8059 - name : Set up Docker
8160 uses : docker/setup-docker-action@v4
8261
8362 - name : Build Tool-Solutions PyTorch
63+ working-directory : ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/pytorch-aarch64
8464 run : ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/pytorch-aarch64/build.sh
85- working-directory : ${{ github.workspace }}/Tool-Solutions
65+ env :
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8667
68+ - name : Run smoke tests
69+ run : docker run --rm toolsolutions-pytorch:latest ./test.sh
8770
88- # This job adds a check named "CI AArch64 " that represents overall
71+ # This job adds a check named "Precommit-status " that represents overall
8972 # workflow status and can be used in branch rulesets
9073 status :
9174 needs : build-and-test
9275 runs-on : ubuntu-latest
93- name : " CI AArch64 "
76+ name : " Precommit-status "
9477 steps :
9578 - name : Print success
9679 run : echo Success
0 commit comments