Repository navigation
246 lines (236 loc) · 8.32 KB
/
Copy pathinteroperability-tests.yml
File metadata and controls
246 lines (236 loc) · 8.32 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
name: Interoperability
on:
workflow_call:
outputs:
jobs:
description: Native endpoint and result jobs
value: ${{ toJSON(jobs) }}
permissions:
contents: read
actions: read
jobs:
linux:
name: Ubuntu 24.04 X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: ubuntu-24.04
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc make openssl openssh-server acl attr libacl1-dev libattr1-dev liblz4-dev libzstd-dev libxxhash-dev libidn2-dev
sudo install -d -o root -g root -m 0755 /run/sshd
- name: Configure
run: ./configure --disable-md2man
- name: Build
run: make -j2
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: linux
freebsd:
name: FreeBSD 15.1 X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: ubuntu-24.04
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Prepare VM host
run: sudo apt-get update && sudo apt-get install -y qemu-utils qemu-system-x86 ovmf
- name: Configure and build
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc # v1.5.9
with:
release: '15.1'
copyback: 'false'
cache-after-prepare: true
prepare: pkg install -y bash autotools m4 xxhash zstd liblz4 libidn2 libiconv python3 git
run: CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --disable-md2man --enable-acl-support --enable-xattr-support && make -j2
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: freebsd
guest: 'true'
netbsd:
name: NetBSD 11.1 X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: ubuntu-24.04
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Prepare VM host
run: sudo apt-get update && sudo apt-get install -y autoconf automake qemu-utils qemu-system-x86 ovmf
- name: Prepare source
run: ./prepare-source
- name: Configure and build
uses: vmactions/netbsd-vm@5957cf330aef2e6ddc63c604364c99ce2e02b91d # v1.5.3
with:
release: '11.1'
sync: tar
copyback: 'false'
cache-after-prepare: true
prepare: |
export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All"
for attempt in 1 2 3; do
PATH=/usr/sbin:$PATH pkg_add -U git-base python312 && break
test "$attempt" -lt 3 || exit 1
sleep 5
done
ln -sf /usr/pkg/bin/python3.12 /usr/pkg/bin/python3
run: |
./configure --disable-md2man --disable-zstd --disable-xxhash --disable-lz4 --disable-idn \
--disable-acl-support --disable-xattr-support
make -j2
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: netbsd
guest: 'true'
openbsd:
name: OpenBSD 8.0 X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: ubuntu-24.04
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Prepare VM host
run: sudo apt-get update && sudo apt-get install -y qemu-utils qemu-system-x86 ovmf
- name: Configure and build
uses: vmactions/openbsd-vm@f1ca8bc8ecc5b6ef7218e5b914836e067e1546d3 # v1.4.9
with:
release: '8.0'
copyback: 'false'
cache-after-prepare: true
prepare: pkg_add -I bash autoconf%2.71 automake%1.16 xxhash zstd lz4 libidn2 libiconv git
run: |
export AUTOCONF_VERSION=2.71 AUTOMAKE_VERSION=1.16
export CPPFLAGS='-I/usr/local/include -DXXH_INLINE_ALL=1' LDFLAGS=-L/usr/local/lib ac_cv_search_XXH64_createState=''
./configure --disable-md2man
make -j2
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: openbsd
guest: 'true'
macos:
name: macOS 26 ARM64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: macos-26
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.27.4'
cache: false
- name: Install dependencies
run: |
brew install automake openssl xxhash zstd lz4 libidn2
echo "$(brew --prefix openssl)/bin" >>"$GITHUB_PATH"
- name: Configure
run: |
prefix=$(brew --prefix)
openssl=$(brew --prefix openssl)
CPPFLAGS="-I$prefix/include -I$openssl/include" LDFLAGS="-L$prefix/lib -L$openssl/lib" ./configure --disable-md2man
- name: Build
run: make -j2
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: macos
solaris:
name: Solaris 11.4 X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: ubuntu-24.04
timeout-minutes: 75
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Prepare VM host
run: sudo apt-get update && sudo apt-get install -y qemu-utils qemu-system-x86 ovmf
- name: Configure and build
uses: vmactions/solaris-vm@87d3c436511cef802cd1637f86f73b1a97715c8c # v1.4.1
with:
release: '11.4'
# v1.4.1 leaves its documented false default unset.
sync-time: 'false'
copyback: 'false'
cache-after-prepare: true
prepare: pkg install bash automake gnu-m4 pkg://solaris/runtime/python-35 autoconf gcc git system/file-system/ufs
run: ./configure --disable-md2man --disable-zstd --disable-xxhash --disable-lz4 --disable-idn && make
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: solaris
guest: 'true'
cygwin:
name: Cygwin X86-64
outputs:
blocked: ${{ steps.transfers.outputs.blocked }}
runs-on: windows-2025
timeout-minutes: 75
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Cygwin
run: .github/scripts/install-cygwin.ps1 -OpenSSH
- name: Configure
run: bash -c './configure --disable-md2man'
- name: Build
run: bash -c 'make -j2'
- name: Transfers
id: transfers
uses: ./.github/actions/interoperability
with:
platform: cygwin
- name: Restore Git
if: always()
run: |
$directory = 'C:\Program Files\Git\cmd'
if (-not (Test-Path -LiteralPath (Join-Path $directory 'git.exe'))) {
throw 'Runner Git is unavailable'
}
$directory >>$Env:GITHUB_PATH
result:
name: Result
if: always()
needs: [linux, freebsd, netbsd, openbsd, macos, solaris, cygwin]
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Verify all endpoint results and cleanup
env:
GH_TOKEN: ${{ github.token }}
INTEROP_JOBS: ${{ toJSON(needs) }}
run: python3 -B -S .github/scripts/interop-host.py result all --root "$RUNNER_TEMP/interoperability"