Skip to content

Update tag.yml

Update tag.yml #18

Workflow file for this run

name: Build Wheel
on:
release:
types:
- created
jobs:
build:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [openstack22]
python: ["3.10", "3.11", "3.12"]
timeout-minutes: 500
steps:
- name: add llvm
run: |
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y git gcc g++ python3 python3-dev python3-pip
fi
- run: python3 -m pip install --user numpy twine
- uses: actions/checkout@v3
with:
submodules: recursive
- run: sudo rm -rf ~/.cache/bazel ~/.cache/bazelisk
- run: |
export TAG=`echo $GITHUB_REF | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/'`
echo $TAG
sed -i.bak "s~version = \"[0-9.]*\"~version = \"$TAG\"~g" BUILD
cat BUILD
- uses: bazel-contrib/[email protected]
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
bazelisk-version: 1.x
# - run: sudo find ~/.cache/bazel ~/.cache/bazelisk -iname "*.whl" -exec rm {} \;
- run: |
HERMETIC_PYTHON_VERSION=`python3 -c "import sys; print('{0[0]}.{0[1]}'.format(sys.version_info))"` bazel build @llvm-project//llvm:FileCheck

Check failure on line 41 in .github/workflows/tag.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tag.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
sudo rm bazel-bin/*.whl || echo
HERMETIC_PYTHON_VERSION=${{ matrix.python }} bazel build :enzyme_ad
- env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: python3 -m twine upload bazel-bin/*.whl