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+ ---
2+ name : C/C++ CI
3+
4+ on :
5+ schedule :
6+ - cron : " 0 20 3 * 5" # run test once a month
7+ push :
8+ branches :
9+ - master
10+ - develop
11+ paths :
12+ - configure.ac
13+ - ' src/**'
14+ - ' include/**'
15+ - ' .github/workflows/*'
16+
17+ pull_request :
18+ branches : [master]
19+
20+ jobs :
21+ notification :
22+ runs-on : ubuntu-latest
23+ name : Notifications
24+ steps :
25+ - name : IRC notification of starting the builds
26+ uses : LanguageMachines/ticcactions/irc-init@v1
27+
28+ build :
29+ runs-on : ${{ matrix.os }}
30+ needs : notification
31+ strategy :
32+ matrix :
33+ os : [ubuntu-latest, macos-latest]
34+ compiler : [g++ -std=c++17, clang++ -std=c++17]
35+
36+ steps :
37+
38+ - name : Cancel Previous Runs
39+ uses : styfle/cancel-workflow-action@0.12.1
40+ with :
41+ access_token : ${{ github.token }}
42+
43+ - uses : actions/checkout@v4.1.1
44+
45+ - uses : LanguageMachines/ticcactions/cpp-build-env@v1
46+ - uses : LanguageMachines/ticcactions/cpp-dependencies@v1
47+ - uses : LanguageMachines/ticcactions/irc-nick@v1
48+
49+ - uses : LanguageMachines/ticcactions/setup-cppcheck@v1
50+ - name : Static Code-check
51+ if : ${{ env.action_status == '' }}
52+ run : cppcheck ${{ env.cpc_opts }} .
53+
54+ - uses : LanguageMachines/ticcactions/cpp-safe-build@v1
55+
56+ - name : Notify IRC of results
57+ uses : LanguageMachines/ticcactions/irc-status@v1
58+ with :
59+ branch : ${{ github.ref_name }}
60+ nickname : ${{ env.nick }}
61+ step : test
62+ status : ${{ env.action_status }}
63+ details : ${{ env.action_details }}
You can’t perform that action at this time.
0 commit comments