-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (78 loc) · 2.22 KB
/
setup-erlang-examples.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
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
name: Setup Erlang Examples
on:
push:
branches:
- master
jobs:
# otp-release-rebar3:
# strategy:
# matrix:
# platforms: [ubuntu, macos, windows]
# version: [25, 26, 27]
# runs-on: ${{ matrix.platforms }}-latest
# steps:
# - uses: actions/checkout@v4
# - uses: erlangsters/setup-erlang@v1
# with:
# erlang-version: ${{ matrix.version }}
# install-rebar3: true
# - run: cd otp-release-rebar3 && rebar3 as prod release
# otp-release-erlang-mk:
# strategy:
# matrix:
# platforms: [ubuntu, macos, windows]
# version: [25, 26, 27]
# runs-on: ${{ matrix.platforms }}-latest
# steps:
# - uses: actions/checkout@v4
# - uses: erlangsters/setup-erlang@v1
# with:
# erlang-version: ${{ matrix.version }}
# - run: cd otp-release-erlang-mk && make rel
# nif-library-rebar3:
# strategy:
# matrix:
# platforms: [ubuntu, macos, windows]
# version: [25] # [25, 26, 27]
# runs-on: ${{ matrix.platforms }}-latest
# steps:
# - uses: actions/checkout@v4
# - uses: erlangsters/setup-erlang@v1
# with:
# erlang-version: ${{ matrix.version }}
# install-rebar3: true
# - run: |
# cd nif-library-rebar3
# rebar3 compile
# rebar3 eunit
nif-library-erlang-mk:
strategy:
matrix:
platforms: [windows] # [ubuntu, macos, windows]
version: [25] # [25, 26, 27]
runs-on: ${{ matrix.platforms }}-latest
steps:
- uses: actions/checkout@v4
- uses: erlangsters/setup-erlang@v1.0.1
id: setup-erlang
with:
erlang-version: ${{ matrix.version }}
- run: |
ls ${{ steps.setup-erlang.outputs.erlang-location }}
ls ${{ steps.setup-erlang.outputs.erlang-location }}/bin
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: false
install: >-
git
make
mingw-w64-x86_64-gcc
path-type: inherit
- run: |
ls ${{ steps.setup-erlang.outputs.erlang-location }}
ls ${{ steps.setup-erlang.outputs.erlang-location }}/bin
- shell: msys2 {0}
run: |
cd nif-library-erlang-mk
make