forked from willfind/nimble
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.42 KB
/
Copy pathbuildCondaChannel.yml
File metadata and controls
53 lines (45 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Build the conda channel and save as artifact, to either be manually downloaded,
# or chained as a precursor job within another action.
#
# Effects:
# - artifact containing conda channel is saved
name: BuildCondaChannel
on:
workflow_call:
inputs:
# The name of the artifact containing the wheels
saveNameWheel:
required: true
type: string
# The name of the artifact containing the conda channel
saveNameConda:
required: true
type: string
jobs:
build_channel:
name: $Channel info for for ${{ matrix.os}}
# This will automatically split off concurrent jobs running-on each value
runs-on: ${{ matrix.os}}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: ${{inputs.saveNameWheel}}
path: wheelhouse
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
activate-environment: ""
- name: Conda channel build
run: |
conda install conda-build
conda build conda_recipe/ --output-folder=nimble-data --no-test --no-anaconda-upload --no-activate
- uses: actions/upload-artifact@v3
with:
name: ${{inputs.saveNameConda}}
path: ./nimble-data/
retention-days: 1