File: builds.yaml

package info (click to toggle)
composefs 1.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,040 kB
  • sloc: ansic: 9,004; sh: 416; python: 225; makefile: 5
file content (55 lines) | stat: -rw-r--r-- 1,875 bytes parent folder | download
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
name: Build binaries

on: push

permissions:
  actions: read

jobs:
  build:
    strategy:
      matrix:
        include:
          - baseimage: docker.io/library/ubuntu:24.04
            basename: ubuntu-24.04
          - baseimage: docker.io/library/ubuntu:22.04
            basename: ubuntu-22.04
          - baseimage: quay.io/fedora/fedora:41
            basename: fedora-41
          - baseimage: quay.io/centos/centos:stream9
            basename: centos-stream9
    runs-on: ubuntu-24.04
    container: ${{ matrix.baseimage }}
    steps:
      - name: Bootstrap git
        run: if test -x /usr/bin/apt; then apt -y update && apt -y install git; else dnf -y install git; fi
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Fix git perms
        run: git config --global --add safe.directory $(pwd)
      - name: Install dependencies
        run: ./hacking/installdeps.sh
      - name: Set environment
        run: set -e
             echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
      - name: Configure
        run: meson setup build --prefix=/usr -Dfuse=disabled
      - name: Build
        run: meson compile -C build
      - name: Capture build
        run: set -e; DESTDIR=$(pwd)/instroot meson install -C build &&
             tar -C instroot --sort=name --owner=0 --group=0 --numeric-owner
               --mtime="${SOURCE_DATE_EPOCH}"
               --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
               -czf composefs.tar.gz .
      - name: Upload binary
        uses: actions/upload-artifact@v4
        with:
          name: composefs-${{ matrix.basename }}.tar
          path: composefs.tar.gz
      - name: Upload log
        uses: actions/upload-artifact@v4
        if: always()
        with:
          name: testlog-asan.txt
          path: build/meson-logs/testlog.txt