-
Notifications
You must be signed in to change notification settings - Fork 148
75 lines (65 loc) · 2.57 KB
/
tensorflow.yml
File metadata and controls
75 lines (65 loc) · 2.57 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# SPDX-FileCopyrightText: Copyright 2025, 2026 Arm Limited and affiliates.
#
# SPDX-License-Identifier: Apache-2.0
name: "Build and test Tensorflow"
#* To avoid duplicate jobs running when both push and PR is satisfied, we use this:
#* https://github.com/orgs/community/discussions/26940#discussioncomment-5686753
on:
push:
branches: [main]
paths:
- ".github/**"
- "ML-Frameworks/tensorflow-aarch64/**"
- "ML-Frameworks/utils/**"
# Exclusions (must come after the includes):
- "!ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
- "!ML-Frameworks/tensorflow-aarch64/README.md"
- "!ML-Frameworks/tensorflow-aarch64/welcome.txt"
pull_request:
types: [opened, synchronize, reopened]
paths:
- ".github/**"
- "ML-Frameworks/tensorflow-aarch64/**"
- "ML-Frameworks/utils/**"
# Exclusions (must come after the includes):
- "!ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
- "!ML-Frameworks/tensorflow-aarch64/README.md"
- "!ML-Frameworks/tensorflow-aarch64/welcome.txt"
schedule:
#* minute (0-59) hour (0-23) day (1-31) month (1-12) day of the week (0 - 6)
#* cron jobs run on the default (main) branch.
#* set to run at 5am UCT
- cron: "0 5 * * *"
#* allow manual trigger of workflow when needed.
workflow_dispatch:
#* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
#* Does not apply to the main branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# Declare default permissions as read only.
permissions: read-all
jobs:
build-and-test:
strategy:
matrix:
config: [
{ name: c7g, label: ah-ubuntu_24_04-c7g_8x-100 } # Metal instance required as 4x large is not big enough
]
runs-on: ${{ matrix.config.label }}
steps:
- name: Checkout Tool-Solutions
uses: actions/checkout@v6.0.2
with:
path: Tool-Solutions
- name: Set up Docker
uses: docker/setup-docker-action@v5.0.0
- name: Build Tool-Solutions Tensorflow
working-directory: ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/tensorflow-aarch64
run: ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/tensorflow-aarch64/build.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run smoke tests
run: docker run --rm toolsolutions-tensorflow:latest ./test_examples.sh
- name: Run unit tests
run: docker run --rm toolsolutions-tensorflow:latest ./run_unit_tests.sh