-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 1.17 KB
/
build.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
name: build
on:
push:
branches:
- main
- 'renovate/**'
pull_request:
schedule:
- cron: '0 1 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- focal
- jammy
arch:
- x86_64
- aarch64
env:
DISTRO: ${{ matrix.distro }} # build target, name required by binary-builder
ARCH: ${{ matrix.arch }} # build target, name required by binary-builder
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: binary-builder
uses: containerbase/internal-tools@1a50a8117a939f804e316db9394efc22158e061a # v1.21.13
with:
command: binary-builder
dry-run: ${{github.ref != 'refs/heads/main'}}
config: builder/${{ matrix.distro }}.json
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{ env.DISTRO }}
path: .cache/*.tar.xz