Skip to content

mlplatform.org revision 24.02 to pack 24.02rc1 by @MatthiasHertel80 #39

mlplatform.org revision 24.02 to pack 24.02rc1 by @MatthiasHertel80

mlplatform.org revision 24.02 to pack 24.02rc1 by @MatthiasHertel80 #39

Workflow file for this run

name: Release CI
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
revision:
description: 'mlplatform revision'
required: true
default: '22.02'
candidate_rev:
description: 'Release candidate revision'
required: false
default: ''
run-name: mlplatform.org revision ${{ inputs.revision }} to pack ${{ inputs.revision }}${{ inputs.candidate_rev }} by @${{ github.actor }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-tensorflow:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout tensorflow-build
uses: actions/checkout@v2
with:
repository: MDK-Packs/tensorflow-pack
path: tensorflow-pack
# - name: Create Container runtime from DockerHub
# run : |
# docker run -i -v ${{ github.workspace }}:/workspace/host --mac-address="00:02:F7:FF:55:55" --name build_runtime -d armswdev/cmsis_tools_m55:latest
# docker exec build_runtime pip3 install six requests pyyaml junit_xml pillow
# docker exec build_runtime cp /workspace/host/tensorflow-pack/tensorflow-build/.wgetrc /root/.wgetrc
# mkdir ${{ github.workspace }}/out/
- name: Install tools
run: |
sudo apt install rsync
pip3 install numpy pillow semantic-version six requests junit_xml pyyaml pygithub
mkdir ${{ github.workspace }}/out/
- name: Get history of releases from github
run:
python3 ./tensorflow-pack/tensorflow-build/get_releases.py ${{ secrets.GITHUB_TOKEN }} > ./tensorflow-pack/tensorflow-build/history.txt
- name: Run the pack build with the revision specified
run :
./tensorflow-pack/tensorflow-build/build_r.sh ${{ github.event.inputs.revision }} ${{ github.event.inputs.candidate_rev }}
#- name: Copy tensorflow-pack to out path
# run :
# cp ${{ github.workspace }}/tensorflow-pack/tensorflow-build/gen/build/*.pack ${{ github.workspace }}/out/
- name: Run the 3rdparty pack build with the revision specified
run : |
export PATH=$PATH:${{ github.workspace }}/tensorflow-pack/tensorflow-build/gen/utilities
./tensorflow-pack/3rdparty-build/build_r.sh ${{ github.event.inputs.revision }} ${{ github.event.inputs.candidate_rev }}
- name: Copy packs to out path
run :
cp ${{ github.workspace }}/tensorflow-pack/out/*.pack ${{ github.workspace }}/out/
- name: Get all generated PDSC files for artifact upload
run :
find ${{ github.workspace }}/tensorflow-pack/ -name '*.pdsc' -exec cp -prv '{}' '${{ github.workspace }}/out/' ';'
- name: Upload Pack
uses: actions/upload-artifact@v3
with:
name: tensorflow-pack-release
path: ${{ github.workspace }}/out