File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ---
21name : Run CI
2+
33on :
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
1212jobs :
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
You can’t perform that action at this time.
0 commit comments