Cross-OS Conda Build #304
This file contains 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
# This workflow will build the latest source files in Anaconda. | |
name: Cross-OS Conda Build | |
on: | |
schedule: | |
- cron: "0 0 * * 2,5" | |
workflow_dispatch: | |
jobs: | |
conda-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.10'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Conda build | |
run: | | |
conda update conda | |
conda install conda-build | |
conda build --channel conda-forge --channel pytorch --override-channels --output-folder ./conda-out/ ./conda-recipe/ |