Debian Codegraph @

.github/workflows/builds.yaml

raw
1 name: Build binaries
2
3 on: push
4
5 permissions:
6 actions: read
7
8 jobs:
9 build:
10 strategy:
11 matrix:
12 include:
13 - baseimage: docker.io/library/ubuntu:24.04
14 basename: ubuntu-24.04
15 - baseimage: docker.io/library/ubuntu:22.04
16 basename: ubuntu-22.04
17 - baseimage: quay.io/fedora/fedora:41
18 basename: fedora-41
19 - baseimage: quay.io/centos/centos:stream9
20 basename: centos-stream9
21 runs-on: ubuntu-24.04
22 container: ${{ matrix.baseimage }}
23 steps:
24 - name: Bootstrap git
25 run: if test -x /usr/bin/apt; then apt -y update && apt -y install git; else dnf -y install git; fi
26 - name: Checkout repository
27 uses: actions/checkout@v4
28 - name: Fix git perms
29 run: git config --global --add safe.directory $(pwd)
30 - name: Install dependencies
31 run: ./hacking/installdeps.sh
32 - name: Set environment
33 run: set -e
34 echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
35 - name: Configure
36 run: meson setup build --prefix=/usr -Dfuse=disabled
37 - name: Build
38 run: meson compile -C build
39 - name: Capture build
40 run: set -e; DESTDIR=$(pwd)/instroot meson install -C build &&
41 tar -C instroot --sort=name --owner=0 --group=0 --numeric-owner
42 --mtime="${SOURCE_DATE_EPOCH}"
43 --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
44 -czf composefs.tar.gz .
45 - name: Upload binary
46 uses: actions/upload-artifact@v4
47 with:
48 name: composefs-${{ matrix.basename }}.tar
49 path: composefs.tar.gz
50 - name: Upload log
51 uses: actions/upload-artifact@v4
52 if: always()
53 with:
54 name: testlog-asan.txt
55 path: build/meson-logs/testlog.txt