make sure we are grabbing mpich builds #132
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build_conda | |
| on: [push] | |
| # pull_request: | |
| # branches: | |
| # - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: ['ghcr.io/noaa-gfdl/fre-cli:miniconda24_gcc14_v2'] | |
| # image: ['ghcr.io/noaa-gfdl/fre-cli:miniconda24_gcc14_v2', 'condaforge/miniforge3:latest'] | |
| container: | |
| image: ${{ matrix.image }} | |
| steps: | |
| - name: Checkout Files | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Run Conda to Build | |
| continue-on-error: true | |
| run: | | |
| # append the reqd channels | |
| conda config --append channels conda-forge | |
| conda config --append channels noaa-gfdl | |
| # remove any default channels | |
| conda config --remove channels defaults || echo "no defaults to remove" | |
| # just in case | |
| conda config --show channels | |
| ## install conda-build and conda-verify | |
| #conda install conda-build conda-verify | |
| conda install conda-build | |
| # conda build | |
| mkdir -p /app/fre-nctools-tarball | |
| conda build . --package-format tar.bz2 --output-folder /app/fre-nctools-tarball || echo "conda build failed, guarding. artifact upload will fail instead." | |
| #conda build . --build-only --no-anaconda-upload --package-format tar.bz2 --output-folder /app/fre-nctools-tarball || echo "conda build failed, guarding. artifact upload will fail instead." | |
| #conda build --test $(ls /app/fre-nctools-tarball/noarch/fre-nctools-*.tar.bz2) | |
| - name: Upload fre-nctools tarball | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fre-nctools-tarball | |
| path: /app/fre-nctools-tarball/linux-64/fre-nctools-*.tar.bz2 | |
| if-no-files-found: error | |
| - name: Upload test-suite.log | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fre-nctools-test-suite-log | |
| path: /app/fre-nctools-tarball/test-suite.log | |
| if-no-files-found: error | |