Skip to content

Commit

Permalink
Attempt to fix Linux release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombana committed Jun 17, 2024
1 parent cf83bde commit d43a08f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/tools/release_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ set -e -x
python configure.py

# Build
# `release_cpu_linux` will activate absolute paths to files that only exist in the tensorflow/build:2.16-pythonXX docker container
bazel build :build_pip_pkg \
--config=release_cpu_linux \
--copt=-fvisibility=hidden \
--copt=-mavx \
--verbose_failures \
[email protected]_manylinux2014-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain
--verbose_failures

# Package Whl
bazel-bin/build_pip_pkg artifacts
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: ["3.10", 3.11]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
runs-on: macos-11
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: ["3.10", 3.11]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: ["3.10", 3.11]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -245,9 +245,10 @@ jobs:
docker run -e LCE_RELEASE_VERSION=${{ github.event.inputs.version }} \
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-credentials.json \
-e TF_PYTHON_VERSION=${{ matrix.python-version }} \
-v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/gcloud-credentials.json:ro \
-v ${PWD}:/compute-engine -w /compute-engine \
tensorflow/build:2.13-python${{ matrix.python-version }} \
tensorflow/build:2.16-python${{ matrix.python-version }} \
.github/tools/release_linux.sh
sudo apt-get -y -qq install patchelf --no-install-recommends
Expand All @@ -258,8 +259,6 @@ jobs:
done
ls -al wheelhouse/
env:
TF_PYTHON_VERSION: ${{ matrix.python-version }}
- uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-wheels
Expand All @@ -270,7 +269,7 @@ jobs:
runs-on: windows-2019
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: ["3.10", 3.11]
fail-fast: false
steps:
- name: Configure Pagefile
Expand Down

0 comments on commit d43a08f

Please sign in to comment.