blob: 0e0f1379bef96802ae0616ca37d2642a10482b06 (
plain) (
blame)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
## @todo Describe.
name: Check a ci.erlang.mk project
on:
workflow_call:
env:
CI_ERLANG_MK: 1
AUTO_CI_MASTER: weekly
jobs:
prepare-unix:
name: Prepare Unix
runs-on: ubuntu-latest
outputs:
erlang: ${{ steps.versions.outputs.erlang }}
latest: ${{ steps.latest_version.outputs.latest }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout ci.erlang.mk repository
uses: actions/checkout@v4
with:
repository: ninenines/ci.erlang.mk
path: deps/ci.erlang.mk
- name: Output Erlang/OTP versions
id: versions
run: |
{
echo "erlang<<EOF"
make ci-list | jq -Rn '[inputs]'
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Output latest Erlang/OTP version
id: latest_version
run: |
{
echo "latest<<EOF"
make ci-list | grep -v rc | grep -v master | tail -n1
echo EOF
} >> "$GITHUB_OUTPUT"
check:
name: Unix
needs: prepare-unix
strategy:
fail-fast: false
matrix:
erlang: ${{ fromJson(needs.prepare-unix.outputs.erlang) }}
os: [ubuntu-latest, macos-latest]
uses: ./.github/workflows/unix-ci.yaml
with:
latest: ${{ needs.prepare-unix.outputs.latest }}
erlang: ${{ matrix.erlang }}
os: ${{ matrix.os }}
prepare-windows:
name: Prepare Windows
runs-on: windows-latest
outputs:
erlang: ${{ steps.versions.outputs.erlang }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout ci.erlang.mk repository
uses: actions/checkout@v4
with:
repository: ninenines/ci.erlang.mk
path: deps/ci.erlang.mk
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
git
make
mingw-w64-x86_64-jq
- name: Output Erlang/OTP versions
id: versions
shell: msys2 {0}
run: |
{
echo "erlang<<EOF"
make ci-windows-list | jq -Rn '[inputs]'
echo EOF
} >> "$GITHUB_OUTPUT"
test-windows:
name: Windows
needs: prepare-windows
strategy:
fail-fast: false
matrix:
erlang: ${{ fromJson(needs.prepare-windows.outputs.erlang) }}
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Erlang/OTP
uses: erlef/setup-beam@f6a73a7bf1fb3d2faab5d807acfd2829b706fda9
with:
otp-version: '${{ matrix.erlang }}'
version-type: loose
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
git
make
- name: Run tests
shell: msys2 {0}
run: PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH make -k ci-windows-${{ matrix.erlang }}
- name: Upload logs
uses: actions/upload-artifact@v4
if: always()
with:
name: Common Test logs (${{ matrix.erlang }} ${{ runner.os }})
path: |
logs/
!logs/**/log_private
|