Skip to content

Commit 29a11f2

Browse files
authored
Merge pull request #84 from scipp/fix_anaconda_upload
Use mamba for builds and fix anaconda upload
2 parents 1d2d2d5 + b7426d8 commit 29a11f2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
with:
2727
fetch-depth: 0 # history required so cmake can determine version
2828
- uses: conda-incubator/setup-miniconda@v2
29-
- run: conda install --yes conda-build
30-
- run: conda build --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda
29+
- run: conda install --channel conda-forge --yes conda-build mamba boa
30+
- run: conda mambabuild --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda
3131

3232
- uses: actions/upload-artifact@v2
3333
with:

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
env:
1010
conda_label: ${{ startsWith(github.ref, 'refs/tags/') && 'main' || 'dev' }}
1111
steps:
12-
- uses: conda-incubator/setup-miniconda@v2
13-
- run: conda install -c conda-forge --yes anaconda-client
1412
- uses: actions/checkout@v2 # Need to checkout repo so github-pages-deploy-action works
1513
- uses: actions/download-artifact@v2
14+
- uses: conda-incubator/setup-miniconda@v2
15+
- run: conda install -c conda-forge --yes anaconda-client
1616
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label ${{ env.conda_label }} $(ls conda-package-*/*/*.tar.bz2)
1717

1818
- uses: JamesIves/[email protected]

.github/workflows/weekly_and_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
types: [published]
66
schedule:
77
- cron: "0 2 * * 4"
8+
workflow_dispatch:
89

910
jobs:
1011
build:

0 commit comments

Comments
 (0)