Skip to content

Commit e9b6249

Browse files
committed
Remove unrelated CI configuration changes
1 parent aa04988 commit e9b6249

File tree

1 file changed

+15
-41
lines changed

1 file changed

+15
-41
lines changed

.github/workflows/ci.yml

+15-41
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,10 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v2
2929

30-
- name: Get history and tags for SCM versioning to work (Unix)
31-
if: runner.os != 'Windows'
32-
run: |
33-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
34-
git fetch --prune --unshallow
35-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
36-
fi
37-
38-
- name: Get history and tags for SCM versioning to work (Windows)
39-
if: runner.os == 'Windows'
30+
- name: Get history and tags for SCM versioning to work
4031
run: |
41-
$value = git rev-parse --is-shallow-repository
42-
if ( $value -eq "true" )
43-
{
44-
git fetch --prune --unshallow
45-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
46-
}
32+
git fetch --prune --unshallow
33+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4734
4835
- name: Setup Python ${{ matrix.python }}
4936
uses: actions/setup-python@v2
@@ -110,8 +97,7 @@ jobs:
11097
fail-fast: false
11198
matrix:
11299
clang:
113-
- 3.7 # could be 3.5 version for full C++14 support (3.4 fails because of -fstack-protector-strong)
114-
# but for proper OpenMP support we require 3.7
100+
- 3.5 # version for full C++14 support (3.4 fails because of -fstack-protector-strong)
115101
- 5 # earliest version for reasonable C++17 support
116102
- 10 # version for full C++17 support (with patches)
117103
- latest
@@ -128,10 +114,8 @@ jobs:
128114

129115
- name: Get history and tags for SCM versioning to work
130116
run: |
131-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
132-
git fetch --prune --unshallow
133-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
134-
fi
117+
git fetch --prune --unshallow
118+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
135119
136120
- name: Prepare env
137121
run: >
@@ -181,10 +165,8 @@ jobs:
181165

182166
- name: Get history and tags for SCM versioning to work
183167
run: |
184-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
185-
git fetch --prune --unshallow
186-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
187-
fi
168+
git fetch --prune --unshallow
169+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
188170
189171
- name: Prepare env
190172
run: >
@@ -251,10 +233,8 @@ jobs:
251233

252234
- name: Get history and tags for SCM versioning to work
253235
run: |
254-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
255-
git fetch --prune --unshallow
256-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
257-
fi
236+
git fetch --prune --unshallow
237+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
258238
259239
- name: Create pip cache dir
260240
run: mkdir -p ~/.cache/pip
@@ -304,10 +284,8 @@ jobs:
304284

305285
- name: Get history and tags for SCM versioning to work
306286
run: |
307-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
308-
git fetch --prune --unshallow
309-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
310-
fi
287+
git fetch --prune --unshallow
288+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
311289
312290
- uses: actions/setup-python@v2
313291

@@ -341,14 +319,10 @@ jobs:
341319
steps:
342320
- uses: actions/checkout@v2
343321

344-
- name: Get history and tags for SCM versioning to work (Windows)
322+
- name: Get history and tags for SCM versioning to work
345323
run: |
346-
$value = git rev-parse --is-shallow-repository
347-
if ( $value -eq "true" )
348-
{
349-
git fetch --prune --unshallow
350-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
351-
}
324+
git fetch --prune --unshallow
325+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
352326
353327
- name: Get pip cache dir
354328
id: pip-cache

0 commit comments

Comments
 (0)