Conda-CPU-Nightly #1596
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
# GH actions. | |
name: Conda-CPU-Nightly | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '20 6 * * *' # 6:20 AM UTC | |
jobs: | |
Build: | |
strategy: | |
matrix: | |
os: [windows-2019, macOS-latest, ubuntu-latest] | |
pkg: ['tlcpack', 'tlcpack-nightly'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
env: | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('conda/build-environment.yaml') }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: tlcpack-build | |
channel-priority: strict | |
environment-file: conda/build-environment.yaml | |
auto-activate-base: false | |
use-only-tar-bz2: true | |
- name: Conda info | |
run: | | |
conda info | |
conda list | |
- name: TVM checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
repository: apache/tvm | |
path: tvm | |
- name: Sync Package | |
run: python3 common/sync_package.py ${{ matrix.pkg }} --skip-checkout | |
- name: Conda-Build@Win | |
if: startsWith(matrix.os, 'windows') | |
shell: cmd /C call {0} | |
run: >- | |
conda build --output-folder=conda/pkg -m conda/build_config.yaml conda/recipe | |
- name: Conda-Build@MacOS | |
if: startsWith(matrix.os, 'macOS') | |
shell: bash -l {0} | |
env: | |
MACOSX_DEPLOYMENT_TARGET: 10.15 | |
run: >- | |
conda build --output-folder=conda/pkg -m conda/build_config.yaml conda/recipe | |
- name: Conda-Build@Linux | |
if: startsWith(matrix.os, 'ubuntu') | |
shell: bash -l {0} | |
run: >- | |
conda build --output-folder=conda/pkg -m conda/build_config.yaml conda/recipe | |
- name: Conda-Deploy@Win | |
if: startsWith(matrix.os, 'windows') && github.ref == 'refs/heads/main' | |
shell: cmd /C call {0} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
run: >- | |
anaconda upload --force --label main conda/pkg/win-64/*.tar.bz2 | |
- name: Conda-Deploy@MacOS | |
if: startsWith(matrix.os, 'macOS') && github.ref == 'refs/heads/main' | |
shell: bash -l {0} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
run: >- | |
anaconda upload --force --label main conda/pkg/osx-64/*.tar.bz2 | |
- name: Conda-Deploy@Linux | |
if: startsWith(matrix.os, 'ubuntu') && github.ref == 'refs/heads/main' | |
shell: bash -l {0} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
run: >- | |
anaconda upload --force --label main conda/pkg/linux-64/*.tar.bz2 |