diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000000..17d50f606ad --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,67 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master, rel-* ] + pull_request: + branches: [ master, rel-* ] + +# 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: + # The type of runner that the job will run on + runs-on: macos-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8] + architecture: ['x86_64'] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Checkout submodules + shell: bash + run: | + auth_header="$(git config --local --get http.https://github.com/.extraheader)" + git submodule sync --recursive + git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies and build ONNX + shell: bash + run: | + set -e + python -m pip install --upgrade pip setuptools wheel + python -m pip install numpy + pip install --quiet pytest==5.4.3 nbval + export CC=clang + export CXX=clang++ + + echo "Starting protobuf install" + brew install protobuf + echo PATH: $PATH + + export ONNX_ML=1 + export ONNX_NAMESPACE=ONNX_REL_1_7 + export MACOSX_DEPLOYMENT_TARGET=10.15 + + python setup.py bdist_wheel + for file in dist/*.whl; do pip install --upgrade $file; done + pytest + + - uses: actions/upload-artifact@v1 + with: + name: wheels + path: dist +