Update blank.yml #5
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
on: | |
push: | |
branches: | |
- "**" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: tensorflow/tensorflow | |
ref: refs/tags/v2.12.1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
architecture: "x64" | |
- name: Install Python deps | |
run: | | |
pip install -U pip numpy wheel packaging requests opt_einsum | |
pip install -U keras_preprocessing --no-deps | |
- name: Select Xcode | |
run: | | |
sudo xcode-select -s /Applications/Xcode_13.4.1.app | |
- name: Build tensorflow | |
run: | | |
export CC_OPT_FLAGS="-mno-avx2" | |
./configure | |
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package | |
./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg | |
# mkdir /tmp/tensorflow_pkg | |
# echo "HELLO" > /tmp/tensorflow_pkg/tensorflow.whl | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: tensorflow | |
path: /tmp/tensorflow_pkg |