-
Notifications
You must be signed in to change notification settings - Fork 141
79 lines (76 loc) · 1.63 KB
/
ci.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
name: ci
on:
workflow_dispatch:
push:
branches:
- 'master'
- '[0-9]+.[0-9]{2}'
tags:
- 'v*'
pull_request:
jobs:
pkg:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
target:
- debian-bullseye
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build
run: |
make ${{ matrix.target }}
static:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: x86_64
- os: linux
arch: armel
- os: linux
arch: armhf
- os: linux
arch: aarch64
- os: linux
arch: ppc64le
- os: linux
arch: s390x
- os: darwin
arch: x86_64
- os: darwin
arch: aarch64
- os: windows
arch: x86_64
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build
run: |
make STATICOS=${{ matrix.os }} STATICARCH=${{ matrix.arch }} static
-
name: List files
run: |
tree -nh ./static/build
-
name: Upload static bundle
uses: actions/upload-artifact@v3
with:
name: static-${{ matrix.os }}-${{ matrix.arch }}
path: static/build/*.tar.gz
if-no-files-found: error
retention-days: 2