Skip to content

Commit

Permalink
CI: Fix Conda (#1672)
Browse files Browse the repository at this point in the history
Fix failing Conda CI runner on Linux.
  • Loading branch information
ax3l authored Oct 2, 2024
1 parent aea4b72 commit 8e67c1d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Packages
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
run: |
sudo .github/workflows/dependencies/install_icc
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
run: |
sudo .github/workflows/dependencies/install_icx
Expand Down
31 changes: 12 additions & 19 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang7_nopy_nompi_h5_libcpp_v2}
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang7_nopy_ompi_h5_ad2_libcpp_v2}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang7_nopy_ompi_h5_ad2_v2 }
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang14_py311_nompi_h5_ad2_v2 }
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang8_py38_mpich_h5_ad2_newLayout_v2 }
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: gcc7_py36_ompi_h5_ad2_v2 }
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
run: |
sudo apt-get update
Expand All @@ -278,7 +278,7 @@ jobs:
container:
image: quay.io/pypa/musllinux_1_1_x86_64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
run: |
apk update
Expand All @@ -304,29 +304,22 @@ jobs:
ctest --output-on-failure
conda_ompi_all:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
name: Setup conda
with:
auto-update-conda: true
activate-environment: testing
auto-activate-base: false
activate-environment: openpmd-api-dev
environment-file: conda.yml
channels: conda-forge,defaults
channel-priority: true
- name: Install
shell: bash -eo pipefail -l {0}
run: |
conda install -c conda-forge -y mamba
mamba env create --file conda.yml
- name: Build
shell: bash -eo pipefail -l {0}
env: {CXXFLAGS: -Werror}
run: |
source activate openpmd-api-dev
share/openPMD/download_samples.sh build
cmake -S . -B build \
-DCMAKE_CXX_FLAGS="-Wno-error=stringop-overread" \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: macos-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
run: |
rm -rf /usr/local/bin/2to3
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: macos-12
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install
env: {MACOSX_DEPLOYMENT_TARGET: 11.0}
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.event.pull_request.draft == false
env: {CXX: nvcc, CXXFLAGS: "--forward-unknown-to-host-compiler -Xcompiler -Werror"}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Dependencies
run: .github/workflows/dependencies/install_nvcc11.sh
- name: Build & Install
Expand All @@ -39,7 +39,7 @@ jobs:
# line 4314: error: variable "<unnamed>::autoRegistrar73" was declared but never referenced
# env: {CXXFLAGS: "-Werror -Wno-deprecated-declarations"}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Dependencies
run: .github/workflows/dependencies/install_nvhpc21-11.sh
- name: Build & Install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Non-ASCII Characters
run: .github/workflows/source/hasNonASCII
- name: TABs
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pyflakes
run: |
python3 -m pip install -U pyflakes
Expand All @@ -35,7 +35,7 @@ jobs:
documentation:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: s-weigand/setup-conda@v1.2.2
with:
update-conda: true
Expand All @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: urls-checker
uses: urlstechie/urlchecker-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tooling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clangtidy10_nopy_ompi_h5_ad2 }
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Spack Cache
uses: actions/cache@v3
with: {path: /opt/spack, key: clang10_nopy_ompi_h5_ad2 }
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: windows-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build & Install
run: |
python3.exe -m pip install --upgrade pip
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: windows-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build & Install
run: |
python3.exe -m pip install --upgrade pip setuptools wheel
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: windows-2019
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Build & Install
shell: cmd
Expand Down

0 comments on commit 8e67c1d

Please sign in to comment.