-
Notifications
You must be signed in to change notification settings - Fork 141
75 lines (72 loc) · 1.68 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
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:
platform:
- linux/amd64
# TODO(thaJeztah) re-enable once moby cross-compile also builds containerd
# and runc, or once we build containerd and runc using containerd-packaging
# - linux/arm/v6
# - linux/arm/v7
# - linux/arm64
- darwin/amd64
- darwin/arm64
- windows/amd64
steps:
-
name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build
run: |
make TARGETPLATFORM=${{ matrix.platform }} static
-
name: List files
run: |
tree -nh ./static/build
-
name: Upload static bundle
uses: actions/upload-artifact@v2
with:
name: static-${{ env.PLATFORM_PAIR }}
path: static/build/*.tar.gz
if-no-files-found: error
retention-days: 7