-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy patherlang-25.yaml
102 lines (89 loc) · 2.43 KB
/
erlang-25.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# couchdb is dependent erlang-25 https://docs.couchdb.org/en/stable/install/unix.html#dependencies
package:
name: erlang-25
version: "25.3.2.18"
epoch: 0
description: General-purpose programming language and runtime environment
copyright:
- license: Apache-2.0
dependencies:
runtime:
# mnesia depends on the ca-certificates bundle
- ca-certificates-bundle
provides:
- erlang=${{package.full-version}}
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- ncurses-dev
- openssl-dev
- perl-dev
- zlib-dev
pipeline:
- uses: fetch
with:
expected-sha256: 6ea82a2d3907d94c7d044795708fecf0af580ec6488a0673d2085dd1ea40b499
uri: https://github.com/erlang/otp/releases/download/OTP-${{package.version}}/otp_src_${{package.version}}.tar.gz
- runs: |
export CPPFLAGS="-D_BSD_SOURCE $CPPFLAGS"
./otp_build autoconf
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--host="$CHOST" \
--build="$CBUILD" \
--enable-threads \
--enable-shared-zlib \
--enable-ssl=dynamic-ssl-lib \
--enable-jit
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: "erlang-25-dev"
description: "headers for erlang"
pipeline:
- uses: split/dev
dependencies:
runtime:
- erlang
provides:
- erlang-dev=${{package.full-version}}
update:
enabled: true
github:
identifier: erlang/otp
strip-prefix: OTP-
use-tag: true
tag-filter: OTP-25
test:
pipeline:
# Check the version of the installed Erlang/OTP release
- runs: |
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
ct_run --version
ct_run help
dialyzer --version
dialyzer --help
erl --version
erl --help
erlc -v
typer --version
typer --help
# Create a simple Erlang module, compile it, and run it to print "hello, wolfi"
- runs: |
cat <<EOF > "hello.erl"
-module(hello).
-export([hello_wolfi/0]).
hello_wolfi() -> io:fwrite("hello, wolfi\n").
EOF
erlc hello.erl
erl -noshell -pa . -eval "hello:hello_wolfi()." -s init stop
- uses: test/tw/ldd-check