Users should download the binaries in Releases, not bin/ #22
Workflow file for this run
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
| on: [push] | |
| jobs: | |
| build: | |
| name: conda-test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| prefix: /usr/share/miniconda3/envs/test | |
| - os: macos-latest | |
| prefix: /Users/runner/miniconda3/envs/test | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| path: 'src' | |
| - uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| miniforge-version: "latest" | |
| python-version: 3.8 | |
| use-only-tar-bz2: true # for caching | |
| # restore from cache | |
| - name: Restore environment | |
| id: restore-env-cache | |
| uses: actions/cache/restore@v3 | |
| with: | |
| path: ${{ matrix.prefix }} | |
| key: ${{ runner.os }}-env | |
| - name: Install conda-build | |
| run: conda install conda-build | |
| - name: Build package | |
| run: conda build conda-recipe | |
| working-directory: src/ | |
| - name: Save environment | |
| id: save-env-cache | |
| uses: actions/cache/save@v3 | |
| with: | |
| path: ${{ matrix.prefix }} | |
| key: ${{ steps.restore-env-cache.outputs.cache-primary-key }} |