Skip to content

Commit

Permalink
Merge pull request #84 from scipp/fix_anaconda_upload
Browse files Browse the repository at this point in the history
Use mamba for builds and fix anaconda upload
  • Loading branch information
nvaytet authored Jan 18, 2022
2 parents 1d2d2d5 + b7426d8 commit 29a11f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
with:
fetch-depth: 0 # history required so cmake can determine version
- uses: conda-incubator/setup-miniconda@v2
- run: conda install --yes conda-build
- run: conda build --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda
- run: conda install --channel conda-forge --yes conda-build mamba boa
- run: conda mambabuild --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda

- uses: actions/upload-artifact@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
env:
conda_label: ${{ startsWith(github.ref, 'refs/tags/') && 'main' || 'dev' }}
steps:
- uses: conda-incubator/setup-miniconda@v2
- run: conda install -c conda-forge --yes anaconda-client
- uses: actions/checkout@v2 # Need to checkout repo so github-pages-deploy-action works
- uses: actions/download-artifact@v2
- uses: conda-incubator/setup-miniconda@v2
- run: conda install -c conda-forge --yes anaconda-client
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label ${{ env.conda_label }} $(ls conda-package-*/*/*.tar.bz2)

- uses: JamesIves/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/weekly_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [published]
schedule:
- cron: "0 2 * * 4"
workflow_dispatch:

jobs:
build:
Expand Down

0 comments on commit 29a11f2

Please sign in to comment.