mlplatform.org revision 24.08 to pack 24.08 by @MatthiasHertel80 #58
Workflow file for this run
This file contains 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
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: '24.08' | |
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: Setup Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install tools | |
run: | | |
sudo apt install rsync | |
pip install numpy pillow semantic-version six requests junit_xml pyyaml pygithub | |
mkdir ${{ github.workspace }}/out/ | |
- 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 | |
cat ./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: Show content of ${{ github.workspace }}/tensorflow-pack/out/* folder after bulding the tensorflow-pack | |
run: | | |
tree ${{ github.workspace }}/tensorflow-pack/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: Show content of ${{ github.workspace }}/tensorflow-pack/out/* folder after bulding the 3rd party pack | |
run: | | |
tree ${{ github.workspace }}/tensorflow-pack/out/ | |
- name: Copy packs to out path | |
run : | |
cp ${{ github.workspace }}/tensorflow-pack/out/*.pack ${{ github.workspace }}/out/ | |
- name: Show all available pdsc files | |
working-directory: ${{ github.workspace }}/tensorflow-pack/ | |
run : | |
tree --prune -P '*.pdsc' | |
- name: Get all generated PDSC files for artifact upload | |
run : | | |
find ${{ github.workspace }}/tensorflow-pack/3rdparty-build/ -name '*.pdsc' -exec cp -prv '{}' '${{ github.workspace }}/out/' ';' | |
find ${{ github.workspace }}/tensorflow-pack/tensorflow-build/gen/ -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 | |
- name: Cache artifact | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/out | |
key: latest-tensorflow-pack-build |