-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (43 loc) · 1.07 KB
/
_conda_cpu_build.yml
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
name: Build Conda Package (CPU)
on:
workflow_call:
inputs:
os:
required: true
type: string
python-version:
required: true
type: string
artifact:
required: true
type: string
jobs:
build:
runs-on: ${{ inputs.os }}
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ inputs.python-version }}
- name: Install conda-build
run: conda install conda-build
- name: Build SPDL
run: |
mkdir ~/package
conda build \
./packaging/conda \
--python=${{ inputs.python-version }} \
--output-folder ~/package
- uses: actions/upload-artifact@v4
name: Upload build artifact
with:
name: "${{ inputs.artifact }}"
path: ~/package
if-no-files-found: error
retention-days: 7
overwrite: true