-
Notifications
You must be signed in to change notification settings - Fork 120
46 lines (37 loc) · 1.13 KB
/
libdnf.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
name: libdnf
on:
pull_request:
workflow_dispatch:
jobs:
libdnf:
name: "libdnf"
strategy:
fail-fast: false
matrix:
include:
- name: "CentOS Stream 8"
image: "quay.io/centos/centos:stream8"
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Use CentOS Vault"
run: |
sed -i 's|#baseurl=http://mirror|baseurl=http://vault|' /etc/yum.repos.d/CentOS-Stream-*.repo
- name: "Enable PowerTools repository"
run: |
dnf --setopt install_weak_deps=False install -y dnf-plugins-core
dnf config-manager --enable powertools
- name: "Install packages"
run: |
dnf --setopt install_weak_deps=False install -y \
cmake gcc glib2-devel libdnf-devel json-c-devel
- name: "Run libdnf plugin test"
run: |
cd './src/dnf-plugins/product-id'
mkdir build && cd build
cmake ../ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
make
CTEST_OUTPUT_ON_FAILURE=1 make test