This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (54 loc) · 1.71 KB
/
build_test.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
---
# SPDX-License-Identifier: LGPL-2.1-or-later
# vi: ts=2 sw=2 et:
name: Build & boot test
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README*'
- 'TODO'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README*'
- 'TODO'
jobs:
build:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ toJSON(matrix.distro) }}-${{ matrix.phase }}-${{ github.ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
distro:
- {name: fedora, tag: rawhide }
phase:
- INITRD_BASIC
- INITRD_LVM
- INITRD_LUKS
- INITRD_LUKS_LVM
#- INITRD_ISCSI # iSCSI is missing a generator
- SYSEXT
container:
image: "${{ matrix.distro.name }}:${{ matrix.distro.tag }}"
options: --privileged
# We need to have directories which mkosi uses for its overlayfs on a
# "real" filesystem (not an overlayfs), since we can't nest read/write
# layers. Also, it can't be tmpfs, since generating sysext images uses
# user xattrs. And to correctly propagate loop devices/partitions
# between the container and the host we need to explicitly mount host's
# /dev into the container.
volumes: ["/var/tmp:/var/tmp", "/dev:/dev"]
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Install dependencies
run: ./.github/workflows/build-${{ matrix.distro.name }}.sh DEPS
- name: ${{ matrix.phase }} on ${{ matrix.distro.name }}:${{ matrix.distro.tag }}
run: ./.github/workflows/build-${{ matrix.distro.name }}.sh ${{ matrix.phase }}