Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:

- name: Checkout tensorflow-build
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: MDK-Packs/tensorflow-pack
path: tensorflow-pack
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
find ${{ github.workspace }}/tensorflow-pack/ -name '*.pdsc' -exec cp -prv '{}' '${{ github.workspace }}/out/' ';'

- name: Upload Pack
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: tensorflow-pack-release
path: ${{ github.workspace }}/out
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ jobs:
build-tensorflow:
# The type of runner that the job will run on
runs-on: ubuntu-24.04
permissions:
actions: write
contents: read

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

- name: Checkout tensorflow-build
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: tensorflow-pack

- name: Setup Python environment
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.12'

Expand All @@ -43,6 +46,20 @@ jobs:
pip install numpy pillow semantic-version six requests junit_xml pyyaml pygithub
mkdir ${{ github.workspace }}/out/

- name: Check and delete cache key
env:
GH_TOKEN: ${{ github.token }}
run: |
KEY="latest-tensorflow-pack-build_26.02"
REF="refs/heads/1.26.2"
REPO="${{ github.repository }}"

if gh cache list --repo "$REPO" --ref "$REF" --key "$KEY" | grep -Fq "$KEY"; then
gh cache delete "$KEY" --repo "$REPO" --ref "$REF"
else
echo "Cache not found: $KEY"
fi

- name: Get history of releases from github
run:
python ./tensorflow-pack/tensorflow-build/get_releases.py ${{ secrets.GITHUB_TOKEN }} > ./tensorflow-pack/tensorflow-build/history.txt
Expand Down Expand Up @@ -80,13 +97,13 @@ jobs:
find ${{ github.workspace }}/tensorflow-pack/tensorflow-build/gen/ -name '*.pdsc' -exec cp -prv '{}' '${{ github.workspace }}/out/' ';'

- name: Upload Pack
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: tensorflow-pack-release
path: ${{ github.workspace }}/out

- name: Cache artifact
uses: actions/cache/save@v4
uses: actions/cache/save@v5
with:
path: ${{ github.workspace }}/out
key: latest-tensorflow-pack-build_${{ inputs.revision }}${{ inputs.candidate_rev }}
12 changes: 8 additions & 4 deletions .github/workflows/tests_avh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: Arm-Examples/mlek-cmsis-pack-examples

- name: Restore Latest Pack Build from Cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@v5
with:
path: ${{ github.workspace }}/out
key: latest-tensorflow-pack-build_${{ inputs.revision }}${{ inputs.candidate_rev }}
Expand All @@ -65,7 +65,7 @@ jobs:

- name: Unpack and Install Packs
run:
cd ${{ github.workspace }}/out && cpackget add -a *.pack
cd ${{ github.workspace }}/out && cpackget add *.pack -a

- name: Diagnosis where *.yml files are locacted
run:
Expand All @@ -78,8 +78,12 @@ jobs:
- name: Patch the csolution to use the latest CMSIS-NN, Arm ethos-u-core-driver, and tensorflow packs
run: |
sed -i 's/\(tensorflow::[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/\(Arm::ethos-u-core-driver[^@]*\)@[^ ]*/\1/g; s/\bArm\b/ARM/g' mlek.csolution.yml
sed -i 's/\(ARM::ethos-u-core-driver[^@]*\)@[^ ]*/\1/g; s/\bArm\b/ARM/g' mlek.csolution.yml
sed -i 's/\(ARM::CMSIS-NN[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/\(ARM::CMSIS[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/\(ARM::CMSIS-DSP[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/\(ARM::SSE_320_BSP[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/\(AlifSemiconductor::Ensemble[^@]*\)@[^ ]*/\1/g' mlek.csolution.yml
sed -i 's/component: Arm::/component: ARM::/g' ./device/alif-ensemble/alif-ensemble-E7-device.clayer.yml
sed -i 's/component: Arm::/component: ARM::/g' ./device/corstone/corstone-device.clayer.yml

Expand Down
14 changes: 7 additions & 7 deletions .pack/tensorflow.pidx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<index schemaVersion="1.0.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>tensorflow</vendor>
<url>https://raw.githubusercontent.com/MDK-Packs/tensorflow-pack/main/.pack/</url>
<timestamp>2025-05-12T12:00:00</timestamp>
<timestamp>2026-03-23T12:00:00</timestamp>
<pindex>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="ARM" name="ethos-u-core-driver" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="tensorflow" name="gemmlowp" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="tensorflow" name="kissfft" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="tensorflow" name="ruy" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="tensorflow" name="flatbuffers" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.25.2/" vendor="tensorflow" name="tensorflow-lite-micro" version="1.25.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="ARM" name="ethos-u-core-driver" version="1.26.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="tensorflow" name="gemmlowp" version="1.26.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="tensorflow" name="kissfft" version="1.26.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="tensorflow" name="ruy" version="1.26.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="tensorflow" name="flatbuffers" version="1.26.2"/>
<pdsc url="https://github.com/MDK-Packs/tensorflow-pack/releases/download/1.26.2/" vendor="tensorflow" name="tensorflow-lite-micro" version="1.26.2"/>
</pindex>
</index>