tangled
alpha
login
or
join now
nandi.latha.org
/
godemo
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
Add conda package recipe and release workflow
nandi
3 weeks ago
e991f83d
8c726f2e
1/1
build.yml
success
10s
+59
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
conda-release.yml
recipe.yaml
+31
.tangled/workflows/conda-release.yml
···
1
1
+
# .tangled/workflows/conda-release.yml
2
2
+
# Build and publish conda package to prefix.dev
3
3
+
4
4
+
when:
5
5
+
- event: ["push"]
6
6
+
tag: ["v*"]
7
7
+
8
8
+
engine: "nixery"
9
9
+
10
10
+
clone:
11
11
+
skip: false
12
12
+
depth: 1
13
13
+
submodules: false
14
14
+
15
15
+
dependencies:
16
16
+
nixpkgs:
17
17
+
- go
18
18
+
- rattler-build
19
19
+
- curl
20
20
+
21
21
+
environment:
22
22
+
CGO_ENABLED: "0"
23
23
+
24
24
+
steps:
25
25
+
- name: "Build conda package"
26
26
+
command: |
27
27
+
rattler-build build --recipe recipe.yaml --output-dir ./output
28
28
+
29
29
+
- name: "Upload to prefix.dev"
30
30
+
command: |
31
31
+
rattler-build upload prefix --channel nandi-testing output/**/*.conda
+28
recipe.yaml
···
1
1
+
package:
2
2
+
name: godemo
3
3
+
version: "0.1.0"
4
4
+
5
5
+
source:
6
6
+
# Use git source for spindle builds - it clones the repo
7
7
+
path: .
8
8
+
9
9
+
build:
10
10
+
number: 0
11
11
+
script:
12
12
+
- go build -v -ldflags="-s -w" -o $PREFIX/bin/godemo .
13
13
+
14
14
+
requirements:
15
15
+
build:
16
16
+
- go >=1.21
17
17
+
18
18
+
tests:
19
19
+
- script:
20
20
+
- godemo &
21
21
+
- sleep 1
22
22
+
- curl -s http://localhost:8080/health | grep -q OK
23
23
+
- pkill godemo
24
24
+
25
25
+
about:
26
26
+
home: https://tangled.org/@nandi.latha.org/godemo
27
27
+
summary: Simple Go demo app for Tangled
28
28
+
license: MIT