-
Notifications
You must be signed in to change notification settings - Fork 71
80 lines (70 loc) · 1.62 KB
/
tarball.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
name: tarball
on:
push:
branches: [ master ]
paths:
- '.github/workflows/tarball.yml'
- '**.go'
- 'go.*'
- 'Makefile'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/tarball.yml'
- '**.go'
- 'go.*'
- 'Makefile'
permissions:
contents: read
jobs:
create:
strategy:
matrix:
go-version:
- "1.22"
- "1.23"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Create tarball
run: |
echo "Building with $(nproc) threads"
make tarball
- name: Upload tarball
uses: actions/upload-artifact@v4
with:
name: tarball-${{ matrix.go-version }}
path: nextcloud-spreed-signaling*.tar.gz
test:
strategy:
matrix:
go-version:
- "1.22"
- "1.23"
runs-on: ubuntu-latest
needs: [create]
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Download tarball
uses: actions/download-artifact@v4
with:
name: tarball-${{ matrix.go-version }}
- name: Extract tarball
run: |
mkdir -p tmp
tar xvf nextcloud-spreed-signaling*.tar.gz --strip-components=1 -C tmp
[ -d "tmp/vendor" ] || exit 1
- name: Build
run: |
echo "Building with $(nproc) threads"
make -C tmp build -j$(nproc)
- name: Run tests
env:
USE_DB_IP_GEOIP_DATABASE: "1"
run: |
make -C tmp test TIMEOUT=120s