Skip to content

Commit 2d829c1

Browse files
committed
Modify checkout handling in workflows
1 parent 03ee6b3 commit 2d829c1

File tree

4 files changed

+106
-20
lines changed

4 files changed

+106
-20
lines changed

.github/workflows/basemap-data-hires.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ on:
99

1010
jobs:
1111

12+
checkout:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
-
19+
name: Upload checkout
20+
uses: actions/upload-artifact@v1
21+
with:
22+
name: checkout
23+
path: .
24+
1225
build:
1326
strategy:
1427
matrix:
@@ -17,12 +30,16 @@ jobs:
1730
"2.7",
1831
]
1932
max-parallel: 1
33+
needs: checkout
2034
runs-on: ubuntu-latest
2135
container: "pylegacy/python:${{ matrix.python-version }}-debian-4"
2236
steps:
2337
-
24-
name: Checkout
25-
uses: actions/checkout@v1
38+
name: Download checkout
39+
uses: actions/download-artifact@v1
40+
with:
41+
name: checkout
42+
path: .
2643
-
2744
name: Build wheel
2845
run: |
@@ -58,8 +75,11 @@ jobs:
5875
container: "pylegacy/python:${{ matrix.python-version }}-debian-5"
5976
steps:
6077
-
61-
name: Checkout
62-
uses: actions/checkout@v1
78+
name: Download checkout
79+
uses: actions/download-artifact@v1
80+
with:
81+
name: checkout
82+
path: .
6383
-
6484
name: Download build artifacts
6585
uses: actions/download-artifact@v1

.github/workflows/basemap-data.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ on:
99

1010
jobs:
1111

12+
checkout:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
-
19+
name: Upload checkout
20+
uses: actions/upload-artifact@v1
21+
with:
22+
name: checkout
23+
path: .
24+
1225
build:
1326
strategy:
1427
matrix:
@@ -17,12 +30,16 @@ jobs:
1730
"2.7",
1831
]
1932
max-parallel: 1
33+
needs: checkout
2034
runs-on: ubuntu-latest
2135
container: "pylegacy/python:${{ matrix.python-version }}-debian-4"
2236
steps:
2337
-
24-
name: Checkout
25-
uses: actions/checkout@v1
38+
name: Download checkout
39+
uses: actions/download-artifact@v1
40+
with:
41+
name: checkout
42+
path: .
2643
-
2744
name: Build wheel
2845
run: |
@@ -58,8 +75,11 @@ jobs:
5875
container: "pylegacy/python:${{ matrix.python-version }}-debian-5"
5976
steps:
6077
-
61-
name: Checkout
62-
uses: actions/checkout@v1
78+
name: Download checkout
79+
uses: actions/download-artifact@v1
80+
with:
81+
name: checkout
82+
path: .
6383
-
6484
name: Download build artifacts
6585
uses: actions/download-artifact@v1

.github/workflows/basemap-for-manylinux.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ on:
99

1010
jobs:
1111

12+
checkout:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
-
19+
name: Upload checkout
20+
uses: actions/upload-artifact@v1
21+
with:
22+
name: checkout
23+
path: .
24+
1225
build-geos:
1326
strategy:
1427
matrix:
@@ -19,12 +32,16 @@ jobs:
1932
]
2033
max-parallel: 2
2134
fail-fast: false
35+
needs: checkout
2236
runs-on: ubuntu-latest
2337
container: "pylegacy/${{ matrix.arch }}-python:3.6-debian-4"
2438
steps:
2539
-
26-
name: Checkout
27-
uses: actions/checkout@v1
40+
name: Download checkout
41+
uses: actions/download-artifact@v1
42+
with:
43+
name: checkout
44+
path: .
2845
-
2946
name: Install CMake 3.6.2
3047
run: |
@@ -81,8 +98,11 @@ jobs:
8198
container: "pylegacy/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-4"
8299
steps:
83100
-
84-
name: Checkout
85-
uses: actions/checkout@v1
101+
name: Download checkout
102+
uses: actions/download-artifact@v1
103+
with:
104+
name: checkout
105+
path: .
86106
-
87107
name: Download GEOS artifacts
88108
uses: actions/download-artifact@v1
@@ -235,8 +255,11 @@ jobs:
235255
container: "pylegacy/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-5"
236256
steps:
237257
-
238-
name: Checkout
239-
uses: actions/checkout@v1
258+
name: Download checkout
259+
uses: actions/download-artifact@v1
260+
with:
261+
name: checkout
262+
path: .
240263
-
241264
name: Download build artifacts
242265
uses: actions/download-artifact@v1

.github/workflows/basemap-for-windows.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ on:
99

1010
jobs:
1111

12+
checkout:
13+
runs-on: windows-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
-
19+
name: Upload checkout
20+
uses: actions/upload-artifact@v1
21+
with:
22+
name: checkout
23+
path: .
24+
1225
build-geos:
1326
strategy:
1427
matrix:
@@ -27,11 +40,15 @@ jobs:
2740
cmake-version: "3.13.2"
2841
max-parallel: 4
2942
fail-fast: false
43+
needs: checkout
3044
runs-on: windows-latest
3145
steps:
3246
-
33-
name: Checkout
34-
uses: actions/checkout@v2
47+
name: Download checkout
48+
uses: actions/download-artifact@v1
49+
with:
50+
name: checkout
51+
path: .
3552
-
3653
name: Set Python
3754
uses: actions/setup-python@v2
@@ -86,8 +103,11 @@ jobs:
86103
runs-on: windows-latest
87104
steps:
88105
-
89-
name: Checkout
90-
uses: actions/checkout@v2
106+
name: Download checkout
107+
uses: actions/download-artifact@v1
108+
with:
109+
name: checkout
110+
path: .
91111
-
92112
name: Set Python
93113
uses: actions/setup-python@v2
@@ -178,8 +198,11 @@ jobs:
178198
runs-on: windows-latest
179199
steps:
180200
-
181-
name: Checkout
182-
uses: actions/checkout@v2
201+
name: Download checkout
202+
uses: actions/download-artifact@v1
203+
with:
204+
name: checkout
205+
path: .
183206
-
184207
name: Set Python
185208
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)