onnxruntime compilation fixed #431
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: Update github release | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'package_test' | |
jobs: | |
github-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '12.x' | |
- name: Update meta | |
id: update_meta | |
working-directory: ./scripts/conda | |
run: | | |
export version_cutlang=`cat ../../VERSION` | |
echo "::set-output name=VERSION_CUTLANG::$version_cutlang" | |
echo "::group::VERSION" | |
echo "Inside group $version_cutlang" | |
echo "::endgroup::" | |
sed -i "/version = /c{% set version = '$version_cutlang' %}" meta.yaml | |
sed -i "/cout << \"CLA v/c cout << \"CLA v$version_cutlang\\\t\";" ../../CLA/CLA.Q | |
sed -i "/\"display_name\": \"ROOT C++ with CutLang/c \"display_name\": \"ROOT C++ with CutLang v$version_cutlang\"," ../../scripts/jupyter/kernel/cutlangkernel.json | |
meta=`cat ../../scripts/conda/meta.yaml` | |
echo "::group::META" | |
echo "Inside group $meta" | |
echo "::endgroup::" | |
export unelgRepo=$(git remote -v | grep -e 'origin.*unelg') | |
echo "::set-output name=UNELG_REPO::$unelgRepo" | |
- uses: mukunku/[email protected] | |
id: checkTag | |
with: | |
tag: v${{steps.update_meta.outputs.VERSION_CUTLANG}} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: automated update for scripts/conda meta.yaml | |
if: ${{ steps.checkTag.outputs.exists == 'false' }} | |
working-directory: ./scripts/conda | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "bot" | |
git pull | |
git add ./meta.yaml | |
git add ../../CLA/CLA.Q || echo "../../CLA/CLA.Q ignore commit failure, proceed (simple warning)" | |
git add ../../scripts/jupyter/kernel/cutlangkernel.json || echo "../../scripts/jupyter/kernel/cutlangkernel.json ignore commit failure, proceed (simple warning)" | |
git commit -m "automated update for CLA.Q scripts/conda meta.yaml" || echo "automated update for CLA.Q scripts/conda meta.yaml ignore commit failure, proceed (simple warning)" | |
git push origin $1 | |
- name: Create a GitHub release | |
if: ${{ steps.checkTag.outputs.exists == 'false' }} | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: v${{ steps.update_meta.outputs.VERSION_CUTLANG }} | |
release_name: Release v${{ steps.update_meta.outputs.VERSION_CUTLANG }} | |