diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4bde09f..c95f033 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57a5845..5827d75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' @@ -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 @@ -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 }} diff --git a/.github/workflows/tests_avh.yml b/.github/workflows/tests_avh.yml index 8237d7f..b7d2adb 100644 --- a/.github/workflows/tests_avh.yml +++ b/.github/workflows/tests_avh.yml @@ -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 }} @@ -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: @@ -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 diff --git a/.pack/tensorflow.pidx b/.pack/tensorflow.pidx index 36b7531..0635040 100644 --- a/.pack/tensorflow.pidx +++ b/.pack/tensorflow.pidx @@ -2,13 +2,13 @@ tensorflow https://raw.githubusercontent.com/MDK-Packs/tensorflow-pack/main/.pack/ - 2025-05-12T12:00:00 + 2026-03-23T12:00:00 - - - - - - + + + + + +