Skip to content

Commit 062f026

Browse files
Remove nightly files. (#1136)
* Remove nightly files.
1 parent 07febff commit 062f026

File tree

4 files changed

+18
-246
lines changed

4 files changed

+18
-246
lines changed

.github/workflows/macos_nightly.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.github/workflows/manylinux_nightly.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
branches:
1414
- master
1515
- r*
16+
schedule:
17+
- cron: '0 0 * * *'
1618

1719
env:
1820
BAZEL_VERSION: 1.1.0
@@ -31,6 +33,8 @@ jobs:
3133
name: Build release wheels for manylinux2010
3234
runs-on: ubuntu-18.04
3335
steps:
36+
- if: github.event_name == 'schedule'
37+
run: echo "::set-env name=NIGHTLY_FLAG::--nightly"
3438
- uses: actions/checkout@v2
3539
- uses: actions/setup-python@v1
3640
with:
@@ -39,7 +43,7 @@ jobs:
3943
run: |
4044
docker run -e TF_NEED_CUDA=1 -v ${PWD}:/addons -w /addons \
4145
tensorflow/tensorflow:2.1.0-custom-op-gpu-ubuntu16 \
42-
tools/ci_build/builds/release_linux.sh
46+
tools/ci_build/builds/release_linux.sh $NIGHTLY_FLAG
4347
4448
sudo apt-get install patchelf
4549
python3 -m pip install -U auditwheel==2.0.0
@@ -61,12 +65,14 @@ jobs:
6165
matrix:
6266
python-version: ['3.5', '3.6', '3.7']
6367
steps:
68+
- if: github.event_name == 'schedule'
69+
run: echo "::set-env name=NIGHTLY_FLAG::--nightly"
6470
- uses: actions/checkout@v2
6571
- uses: actions/setup-python@v1
6672
with:
6773
python-version: ${{ matrix.python-version }}
6874
- name: Build macOS wheels
69-
if: github.event_name == 'release' || matrix.python-version == '3.5'
75+
if: github.event_name == 'schedule' || github.event_name == 'release' || matrix.python-version == '3.5'
7076
run: |
7177
python3 --version
7278
python3 -m pip install delocate wheel setuptools
@@ -84,12 +90,12 @@ jobs:
8490
--test_output=errors \
8591
build_pip_pkg
8692
87-
bazel-bin/build_pip_pkg artifacts
93+
bazel-bin/build_pip_pkg artifacts $NIGHTLY_FLAG
8894
for f in artifacts/*.whl; do
8995
delocate-wheel -w wheelhouse $f
9096
done
9197
- uses: actions/upload-artifact@v1
92-
if: github.event_name == 'release' || matrix.python-version == '3.5'
98+
if: github.event_name == 'schedule' || github.event_name == 'release' || matrix.python-version == '3.5'
9399
with:
94100
name: ${{ runner.os }}-wheels
95101
path: wheelhouse
@@ -101,6 +107,8 @@ jobs:
101107
matrix:
102108
python-version: ['3.5', '3.6', '3.7']
103109
steps:
110+
- if: github.event_name == 'schedule'
111+
run: echo "::set-env name=NIGHTLY_FLAG::--nightly"
104112
- uses: actions/checkout@v2
105113
- uses: actions/setup-python@v1
106114
with:
@@ -110,7 +118,7 @@ jobs:
110118
TF_NEED_CUDA: 0
111119
BAZEL_VC: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/"
112120
shell: bash
113-
if: github.event_name == 'release' || matrix.python-version == '3.5'
121+
if: github.event_name == 'schedule' || github.event_name == 'release' || matrix.python-version == '3.5'
114122
run: |
115123
python -m pip install wheel setuptools
116124
curl -sSOL https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-windows-x86_64.exe
@@ -125,16 +133,16 @@ jobs:
125133
--verbose_failures \
126134
--test_output=errors \
127135
build_pip_pkg
128-
bazel-bin/build_pip_pkg artifacts
136+
bazel-bin/build_pip_pkg artifacts $NIGHTLY_FLAG
129137
- uses: actions/upload-artifact@v1
130-
if: github.event_name == 'release' || matrix.python-version == '3.5'
138+
if: github.event_name == 'schedule' || github.event_name == 'release' || matrix.python-version == '3.5'
131139
with:
132140
name: ${{ runner.os }}-wheels
133141
path: artifacts
134142

135143
upload-wheels:
136144
name: Publish wheels to PyPi
137-
needs: [manylinux-release-wheel, macos-release-wheel, windows-release-wheel]
145+
needs: [manylinux-release-wheel, macos-release-wheel, windows-release-wheel, manylinux-cpu-release-test]
138146
runs-on: ubuntu-18.04
139147
steps:
140148
- uses: actions/download-artifact@v1
@@ -158,7 +166,7 @@ jobs:
158166
ls -la dist/
159167
sha256sum dist/*.whl
160168
- uses: pypa/gh-action-pypi-publish@master
161-
if: github.event_name == 'release'
169+
if: github.event_name == 'schedule' || github.event_name == 'release'
162170
with:
163171
user: __token__
164-
password: ${{ secrets.pypi_token }}
172+
password: ${{ secrets.pypi_token }}

.github/workflows/windows_nightly.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)