Skip to content

Commit b515f4a

Browse files
committed
Update workflow
1 parent 2e50fef commit b515f4a

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1-
---
21
name: Run CI
2+
33
on:
44
push:
55
branches:
6-
- "**" # matches every branch
7-
- "!gh-pages" # excludes gh-pages branch
6+
- "**"
7+
- "!gh-pages"
88
pull_request:
99
branches:
10-
- master
10+
- main
1111

1212
jobs:
1313
compile:
1414
runs-on: ubuntu-latest
15+
container:
16+
image: fedora:latest
1517

1618
name: Test compile
1719

1820
steps:
1921
- name: checkout code tree
20-
uses: actions/checkout@v2
22+
uses: actions/checkout@v6
2123
with:
2224
fetch-depth: 0
2325

2426
- name: install dependencies
25-
run: sudo apt-get install -y libcap-dev libseccomp-dev asciidoc
27+
run: |
28+
dnf -y update
29+
dnf -y install \
30+
gcc \
31+
gcc-c++ \
32+
make \
33+
cmake \
34+
libcap-devel \
35+
libseccomp-devel \
36+
asciidoc
2637
2738
- name: run build
2839
run: |
29-
mkdir build;
30-
cd build;
31-
cmake ..;
32-
cmake --build . --verbose;
33-
make test;
40+
mkdir build
41+
cd build
42+
cmake ..
43+
cmake --build . --verbose
44+
ctest --output-on-failure

0 commit comments

Comments
 (0)