aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build-extra.yml
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-11-29 14:04:22 +0000
committerLibravatar GitHub <noreply@github.com>2020-11-29 14:04:22 +0000
commit4b0b7ec216ec1a1f337a3a37b2c514bcd6842629 (patch)
treebb9c139f63e47dc2d6cd8c30f4369f5f7ce19128 /.github/workflows/build-extra.yml
parentFix building C# projects in Godot (#3778) (diff)
downloadfirejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.tar.gz
firejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.tar.zst
firejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.zip
Update build.yml (#3779)
* Update build.yml Currently we run all actions for all commits. This is not resource friendly. Let's tweak this a bit. This commit adds support for "skip ci" tags (i.e. if the head commit contains [s k i p c i] (w/o the extra spaces used to escape here), no jobs are executed. In addition are all commits which modify non-code files (e.g. README) only excluded. Furthermore we should not run cppcheck and scan-build if only profiles are changed and sort.py need only to be execute if profiles are changed. * Create sort.yml * Update build.yml profile-sort is now in sort.yml * Update sort.yml fix syntax * Update codeql-analysis.yml paths-ignore: - CONTRIBUTING.md - README - README.md - RELNOTES - SECURITY.md - 'etc/**' * Create build-extra.yml * Update build.yml * Update build-extra.yml
Diffstat (limited to '.github/workflows/build-extra.yml')
-rw-r--r--.github/workflows/build-extra.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
new file mode 100644
index 000000000..1468ef898
--- /dev/null
+++ b/.github/workflows/build-extra.yml
@@ -0,0 +1,52 @@
1name: Build-extra CI
2
3on:
4 push:
5 branches: [ master ]
6 paths-ignore:
7 - CONTRIBUTING.md
8 - README
9 - README.md
10 - RELNOTES
11 - SECURITY.md
12 - 'etc/**'
13 pull_request:
14 branches: [ master ]
15 paths-ignore:
16 - CONTRIBUTING.md
17 - README
18 - README.md
19 - RELNOTES
20 - SECURITY.md
21 - 'etc/**'
22
23jobs:
24 build-clang:
25 if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }}
26 runs-on: ubuntu-20.04
27 steps:
28 - uses: actions/checkout@v2
29 - name: configure
30 run: CC=clang-10 ./configure --enable-fatal-warnings
31 - name: make
32 run: make
33 scan-build:
34 if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }}
35 runs-on: ubuntu-20.04
36 steps:
37 - uses: actions/checkout@v2
38 - name: install clang-tools-10
39 run: sudo apt-get install clang-tools-10
40 - name: configure
41 run: CC=clang-10 ./configure --enable-fatal-warnings
42 - name: scan-build
43 run: NO_EXTRA_CFLAGS="yes" scan-build-10 --status-bugs make
44 cppcheck:
45 if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }}
46 runs-on: ubuntu-20.04
47 steps:
48 - uses: actions/checkout@v2
49 - name: install cppcheck
50 run: sudo apt-get install cppcheck
51 - name: cppcheck
52 run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance .