Bump sources and handle latest patches #287
Workflow file for this run
This file contains hidden or 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
| # 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 |