Skip to content

Commit 8e67c1d

Browse files
authored
CI: Fix Conda (#1672)
Fix failing Conda CI runner on Linux.
1 parent aea4b72 commit 8e67c1d

File tree

8 files changed

+28
-35
lines changed

8 files changed

+28
-35
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232

3333
- name: Install Packages
3434
run: |

.github/workflows/intel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-20.04
1313
if: github.event.pull_request.draft == false
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Install
1717
run: |
1818
sudo .github/workflows/dependencies/install_icc
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-20.04
4040
if: github.event.pull_request.draft == false
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- name: Install
4444
run: |
4545
sudo .github/workflows/dependencies/install_icx

.github/workflows/linux.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-20.04
1212
if: github.event.pull_request.draft == false
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Spack Cache
1616
uses: actions/cache@v3
1717
with: {path: /opt/spack, key: clang7_nopy_nompi_h5_libcpp_v2}
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-20.04
4545
if: github.event.pull_request.draft == false
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- name: Spack Cache
4949
uses: actions/cache@v3
5050
with: {path: /opt/spack, key: clang7_nopy_ompi_h5_ad2_libcpp_v2}
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-20.04
8888
if: github.event.pull_request.draft == false
8989
steps:
90-
- uses: actions/checkout@v3
90+
- uses: actions/checkout@v4
9191
- name: Spack Cache
9292
uses: actions/cache@v3
9393
with: {path: /opt/spack, key: clang7_nopy_ompi_h5_ad2_v2 }
@@ -121,7 +121,7 @@ jobs:
121121
runs-on: ubuntu-22.04
122122
if: github.event.pull_request.draft == false
123123
steps:
124-
- uses: actions/checkout@v3
124+
- uses: actions/checkout@v4
125125
- name: Spack Cache
126126
uses: actions/cache@v3
127127
with: {path: /opt/spack, key: clang14_py311_nompi_h5_ad2_v2 }
@@ -168,7 +168,7 @@ jobs:
168168
runs-on: ubuntu-20.04
169169
if: github.event.pull_request.draft == false
170170
steps:
171-
- uses: actions/checkout@v3
171+
- uses: actions/checkout@v4
172172
- name: Spack Cache
173173
uses: actions/cache@v3
174174
with: {path: /opt/spack, key: clang8_py38_mpich_h5_ad2_newLayout_v2 }
@@ -217,7 +217,7 @@ jobs:
217217
runs-on: ubuntu-20.04
218218
if: github.event.pull_request.draft == false
219219
steps:
220-
- uses: actions/checkout@v3
220+
- uses: actions/checkout@v4
221221
- name: Spack Cache
222222
uses: actions/cache@v3
223223
with: {path: /opt/spack, key: gcc7_py36_ompi_h5_ad2_v2 }
@@ -253,7 +253,7 @@ jobs:
253253
runs-on: ubuntu-20.04
254254
if: github.event.pull_request.draft == false
255255
steps:
256-
- uses: actions/checkout@v3
256+
- uses: actions/checkout@v4
257257
- name: Install
258258
run: |
259259
sudo apt-get update
@@ -278,7 +278,7 @@ jobs:
278278
container:
279279
image: quay.io/pypa/musllinux_1_1_x86_64
280280
steps:
281-
- uses: actions/checkout@v3
281+
- uses: actions/checkout@v4
282282
- name: Install
283283
run: |
284284
apk update
@@ -304,29 +304,22 @@ jobs:
304304
ctest --output-on-failure
305305
306306
conda_ompi_all:
307-
runs-on: ubuntu-20.04
307+
runs-on: ubuntu-22.04
308308
if: github.event.pull_request.draft == false
309309
steps:
310-
- uses: actions/checkout@v3
310+
- uses: actions/checkout@v4
311311
- uses: conda-incubator/setup-miniconda@v3
312312
name: Setup conda
313313
with:
314314
auto-update-conda: true
315-
activate-environment: testing
316-
auto-activate-base: false
315+
activate-environment: openpmd-api-dev
316+
environment-file: conda.yml
317317
channels: conda-forge,defaults
318318
channel-priority: true
319-
- name: Install
320-
shell: bash -eo pipefail -l {0}
321-
run: |
322-
conda install -c conda-forge -y mamba
323-
mamba env create --file conda.yml
324319
- name: Build
325320
shell: bash -eo pipefail -l {0}
326321
env: {CXXFLAGS: -Werror}
327322
run: |
328-
source activate openpmd-api-dev
329-
330323
share/openPMD/download_samples.sh build
331324
cmake -S . -B build \
332325
-DCMAKE_CXX_FLAGS="-Wno-error=stringop-overread" \

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: macos-latest
1717
if: github.event.pull_request.draft == false
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Install
2121
run: |
2222
rm -rf /usr/local/bin/2to3
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: macos-12
5050
if: github.event.pull_request.draft == false
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353
- name: Install
5454
env: {MACOSX_DEPLOYMENT_TARGET: 11.0}
5555
run: |

.github/workflows/nvidia.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: github.event.pull_request.draft == false
1414
env: {CXX: nvcc, CXXFLAGS: "--forward-unknown-to-host-compiler -Xcompiler -Werror"}
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Dependencies
1818
run: .github/workflows/dependencies/install_nvcc11.sh
1919
- name: Build & Install
@@ -39,7 +39,7 @@ jobs:
3939
# line 4314: error: variable "<unnamed>::autoRegistrar73" was declared but never referenced
4040
# env: {CXXFLAGS: "-Werror -Wno-deprecated-declarations"}
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- name: Dependencies
4444
run: .github/workflows/dependencies/install_nvhpc21-11.sh
4545
- name: Build & Install

.github/workflows/source.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
style:
1111
runs-on: ubuntu-22.04
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Non-ASCII Characters
1515
run: .github/workflows/source/hasNonASCII
1616
- name: TABs
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-22.04
2727
if: github.event.pull_request.draft == false
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: pyflakes
3131
run: |
3232
python3 -m pip install -U pyflakes
@@ -35,7 +35,7 @@ jobs:
3535
documentation:
3636
runs-on: ubuntu-22.04
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
- uses: s-weigand/[email protected]
4040
with:
4141
update-conda: true
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
if: github.event.pull_request.draft == false
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353
- name: urls-checker
5454
uses: urlstechie/urlchecker-action@master
5555
with:

.github/workflows/tooling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-20.04
1313
if: github.event.pull_request.draft == false
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Spack Cache
1717
uses: actions/cache@v3
1818
with: {path: /opt/spack, key: clangtidy10_nopy_ompi_h5_ad2 }
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-20.04
4141
if: github.event.pull_request.draft == false
4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4444
- name: Spack Cache
4545
uses: actions/cache@v3
4646
with: {path: /opt/spack, key: clang10_nopy_ompi_h5_ad2 }

.github/workflows/windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: windows-latest
1313
if: github.event.pull_request.draft == false
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Build & Install
1717
run: |
1818
python3.exe -m pip install --upgrade pip
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: windows-latest
3434
if: github.event.pull_request.draft == false
3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737
- name: Build & Install
3838
run: |
3939
python3.exe -m pip install --upgrade pip setuptools wheel
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: windows-2019
5757
if: github.event.pull_request.draft == false
5858
steps:
59-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
6060
- uses: seanmiddleditch/gha-setup-ninja@master
6161
- name: Build & Install
6262
shell: cmd

0 commit comments

Comments
 (0)