Skip to content

Commit

Permalink
for easier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yumengch committed Jul 23, 2024
1 parent 267b470 commit db14f32
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/conda_build_linux.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: conda_build_linux
on: [workflow_dispatch, pull_request]
jobs:
upload_conda_mac_m1:
upload_conda_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -13,6 +13,7 @@ jobs:
with:
auto-activate-base: true
auto-update-conda: true
activate-environment: ""

- name: install pyPDAF
shell: bash -el {0}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/conda_build_mac_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ jobs:
with:
auto-activate-base: true
auto-update-conda: true
activate-environment: ""

- name: install pyPDAF
- name: build pyPDAF
shell: bash -el {0}
run: |
cp PDAFBuild/setup_conda_intel_mac.cfg setup.cfg
conda install python anaconda-client conda-build conda-verify
anaconda login --username yumengch --password ${{ secrets.ANACONDA }}
conda config --set anaconda_upload no
conda-build -c conda-forge conda.recipe/
- name: install pyPDAF
shell: bash -el {0}
run: |
conda install -y -c conda-forge --use-local pypdaf
mv example/config_mac.py example/config.py
mv example/config_obsA_mac.py example/config_obsA.py
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/conda_build_mac_m1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ jobs:
with:
auto-activate-base: true
auto-update-conda: true
activate-environment: ""

- name: install pyPDAF
- name: build pyPDAF
shell: bash -el {0}
run: |
cp PDAFBuild/setup_conda_m1_mac.cfg setup.cfg
conda install python anaconda-client conda-build conda-verify
anaconda login --username yumengch --password ${{ secrets.ANACONDA }}
conda config --set anaconda_upload no
conda-build -c conda-forge conda.recipe/
- name: install pyPDAF
shell: bash -el {0}
run: |
conda install -y -c conda-forge --use-local pypdaf
mv example/config_mac.py example/config.py
mv example/config_obsA_mac.py example/config_obsA.py
Expand Down
2 changes: 1 addition & 1 deletion PDAFBuild/setup_conda_intel_mac.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ condaBuild = True
c_compiler = clang
fortran_compiler = gfortran
# if MKL is used, give the path to the static MKL library
use_MKL=True
use_MKL=False
MKLROOT=
# if dynamic/shared liblapack and libblas library is used,
# give the library path and flags
Expand Down
6 changes: 3 additions & 3 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ requirements:
- numpy
- mpi4py
- {{ mpi }}
- mkl-static # [x86]
- blas-devel # [not x86]
- liblapack # [not x86]
- mkl-static # [not osx]
- blas-devel # [osx]
- liblapack # [osx]
build:
- {{ compiler('c') }}
- {{ compiler('fortran') }} # [not win]
Expand Down

0 comments on commit db14f32

Please sign in to comment.