Skip to content

Commit 0ee90ca

Browse files
authored
Pin windows to 2019 for GitHub Actions runner (#1645)
* Pin windows to 2019 for GitHub Actions runner This PR pin windows to 2019 for GitHub Actions runner (GitHub Actions silently bumped windows to 2022 recently). Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Ping ubuntu and macos as well Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 5a378cd commit 0ee90ca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
lint:
1717
name: Lint
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-20.04
1919
steps:
2020
- uses: actions/checkout@v2
2121
- name: Run Lint Script for Bazel/Pyupgrade/Black/Clang
@@ -43,7 +43,7 @@ jobs:
4343
4444
macos:
4545
name: macOS
46-
runs-on: macos-latest
46+
runs-on: macOS-11
4747
steps:
4848
- uses: actions/checkout@v2
4949
- name: GCP
@@ -67,7 +67,7 @@ jobs:
6767
6868
linux:
6969
name: Linux
70-
runs-on: ubuntu-latest
70+
runs-on: ubuntu-20.04
7171
container:
7272
image: ubuntu:20.04
7373
env:
@@ -96,7 +96,7 @@ jobs:
9696
9797
macos-bazel:
9898
name: Bazel macOS
99-
runs-on: macos-latest
99+
runs-on: macOS-11
100100
steps:
101101
- uses: actions/checkout@v2
102102
- name: GCP
@@ -122,7 +122,7 @@ jobs:
122122
macos-wheel:
123123
name: Wheel ${{ matrix.python }} macOS
124124
needs: macos-bazel
125-
runs-on: macos-latest
125+
runs-on: macOS-11
126126
strategy:
127127
matrix:
128128
python: ['3.7', '3.8', '3.9', '3.10']
@@ -163,7 +163,7 @@ jobs:
163163
macos-test:
164164
name: Test ${{ matrix.python }} macOS
165165
needs: macos-wheel
166-
runs-on: macos-latest
166+
runs-on: macOS-11
167167
strategy:
168168
matrix:
169169
python: ['3.8', '3.9']
@@ -203,7 +203,7 @@ jobs:
203203
204204
linux-bazel:
205205
name: Bazel Linux
206-
runs-on: ubuntu-latest
206+
runs-on: ubuntu-20.04
207207
container:
208208
image: gcr.io/tensorflow-testing/nosla-ubuntu16.04-manylinux2010
209209
env:
@@ -236,7 +236,7 @@ jobs:
236236
linux-wheel:
237237
name: Wheel ${{ matrix.python }} Linux
238238
needs: linux-bazel
239-
runs-on: ubuntu-latest
239+
runs-on: ubuntu-20.04
240240
strategy:
241241
matrix:
242242
python: ['3.7', '3.8', '3.9', '3.10']
@@ -305,7 +305,7 @@ jobs:
305305
306306
windows-bazel:
307307
name: Bazel Windows
308-
runs-on: windows-latest
308+
runs-on: windows-2019
309309
steps:
310310
- uses: actions/checkout@v2
311311
- uses: egor-tensin/vs-shell@v2
@@ -574,7 +574,7 @@ jobs:
574574
build-number:
575575
name: Build Number
576576
if: github.event_name == 'push'
577-
runs-on: ubuntu-18.04
577+
runs-on: ubuntu-20.04
578578
steps:
579579
- run: |
580580
set -e -x
@@ -589,7 +589,7 @@ jobs:
589589
name: Nightly ${{ matrix.python }} macOS
590590
if: github.event_name == 'push'
591591
needs: [build-number, macos-wheel]
592-
runs-on: macos-latest
592+
runs-on: macOS-11
593593
strategy:
594594
matrix:
595595
python: ['3.7', '3.8', '3.9', '3.10']

0 commit comments

Comments
 (0)