tangled
alpha
login
or
join now
nandi.latha.org
/
pixi-skills
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
fix: add glibc to nixpkgs dependencies
nandi
3 weeks ago
e11cc371
c868b98d
0/1
conda-release.yml
failed
2s
+24
-22
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
build.yml
conda-release.yml
+12
-12
.tangled/workflows/build.yml
···
7
7
- event: ["pull_request"]
8
8
branch: ["main"]
9
9
10
10
-
engine: "docker"
11
11
-
image: "mambaorg/micromamba:latest"
10
10
+
engine: "nixery"
12
11
13
12
clone:
14
13
skip: false
15
14
depth: 1
16
15
submodules: false
17
16
18
18
-
steps:
19
19
-
- name: "Install rattler-build"
20
20
-
command: |
21
21
-
micromamba install -y -c conda-forge rattler-build
17
17
+
dependencies:
18
18
+
nixpkgs:
19
19
+
- rattler-build
20
20
+
- glibc
21
21
+
- patchelf
22
22
23
23
+
environment:
24
24
+
CONDA_OVERRIDE_GLIBC: "2.17"
25
25
+
26
26
+
steps:
23
27
- name: "Build conda package"
24
28
command: |
25
25
-
micromamba run -n base rattler-build build --recipe recipe/recipe.yaml --output-dir ./output
29
29
+
rattler-build build --recipe recipe/recipe.yaml --output-dir ./output
26
30
ls -la output/*/
27
31
28
32
- name: "Verify package"
29
33
command: |
30
30
-
PACKAGE=$(find output -name "*.conda" -type f | head -1)
31
31
-
if [ -z "$PACKAGE" ]; then
32
32
-
echo "ERROR: No package found!"
33
33
-
exit 1
34
34
-
fi
34
34
+
PACKAGE=$(ls output/*/*.conda | head -1)
35
35
echo "Package: $PACKAGE"
36
36
ls -la "$PACKAGE"
+12
-10
.tangled/workflows/conda-release.yml
···
5
5
- event: ["push"]
6
6
tag: ["v*"]
7
7
8
8
-
engine: "docker"
9
9
-
image: "mambaorg/micromamba:latest"
8
8
+
engine: "nixery"
10
9
11
10
clone:
12
11
skip: false
13
12
depth: 1
14
13
submodules: false
15
14
16
16
-
steps:
17
17
-
- name: "Install tools"
18
18
-
command: |
19
19
-
micromamba install -y -c conda-forge rattler-build git
15
15
+
dependencies:
16
16
+
nixpkgs:
17
17
+
- rattler-build
18
18
+
- glibc
19
19
+
- patchelf
20
20
21
21
+
environment:
22
22
+
CONDA_OVERRIDE_GLIBC: "2.17"
23
23
+
24
24
+
steps:
21
25
- name: "Get version from tag"
22
26
command: |
23
27
TAG=${GITEA_REF_NAME:-${GITHUB_REF_NAME:-unknown}}
24
28
echo "Building from tag: ${TAG}"
25
29
VERSION=${TAG#v}
26
30
echo "VERSION=${VERSION}" >> $GITEA_ENV
27
27
-
echo "Package version: ${VERSION}"
28
31
29
32
- name: "Update recipe version"
30
33
command: |
31
34
TAG=${GITEA_REF_NAME:-${GITHUB_REF_NAME:-unknown}}
32
35
VERSION=${TAG#v}
33
36
sed -i "s/version: \"\"/version: \"${VERSION}\"/" recipe/recipe.release.yaml
34
34
-
cat recipe/recipe.release.yaml
35
37
36
38
- name: "Build conda package"
37
39
command: |
38
38
-
micromamba run -n base rattler-build build --recipe recipe/recipe.release.yaml --output-dir ./output
40
40
+
rattler-build build --recipe recipe/recipe.release.yaml --output-dir ./output
39
41
40
42
- name: "Upload to prefix.dev"
41
43
command: |
42
42
-
micromamba run -n base rattler-build upload prefix --channel nandi-testing output/**/*.conda
44
44
+
rattler-build upload prefix --channel nandi-testing output/**/*.conda