-
Notifications
You must be signed in to change notification settings - Fork 57
92 lines (88 loc) · 2.66 KB
/
Copy pathfedora.yml
File metadata and controls
92 lines (88 loc) · 2.66 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
name: stratisd CI on fedora
on:
push:
branches:
- master
paths-ignore:
- 'CHANGES.txt'
- '**/README.md'
- 'README_tests.md'
- 'tests/**'
- '.packit.yaml'
- 'plans/**'
- 'tests-fmf/**'
pull_request:
branches:
- master
paths-ignore:
- 'CHANGES.txt'
- '**/README.md'
- 'README_tests.md'
- 'tests/**'
- '.packit.yaml'
- 'plans/**'
- 'tests-fmf/**'
workflow_dispatch:
# cancel the in-progress workflow when PR is refreshed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
checks:
strategy:
matrix:
include:
- task: make -f Makefile clippy
components: clippy
- task: PROFILEDIR=debug make -f Makefile build
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-min
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-min-no-systemd
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-utils
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-no-ipc
components: cargo
- task: PROFILEDIR=debug make -f Makefile stratisd-tools
components: cargo
- task: make -f Makefile docs-ci
components: cargo
- task: make -f Makefile test
components: cargo
- task: make -f Makefile build
components: cargo
- task: make -f Makefile build-min
components: cargo
- task: make -f Makefile build-no-ipc
components: cargo
runs-on: ubuntu-24.04
container:
image: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
options: --privileged -v /dev:/dev -v /run/udev:/run/udev -v /usr/lib/udev:/usr/lib/udev
steps:
- name: Install dependencies for Fedora
run: >
dnf install -y
clang
curl
cryptsetup-devel
device-mapper-persistent-data
device-mapper-devel
git
libblkid-devel
make
ncurses
sudo
systemd-devel
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: ${{ matrix.components }}
- name: Overwrite stratisd dependencies as necessary
uses: stratis-storage/github-actions/stratisd-modify@HEAD
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain
run: ${{ matrix.task }}