Skip to content

Commit 6d56fb2

Browse files
committed
Merge branch 'js/ci-make-sparse'
The CI gained a new job to run "make sparse" check. * js/ci-make-sparse: ci/install-dependencies: handle "sparse" job package installs ci: run "apt-get update" before "apt-get install" ci: run `make sparse` as part of the GitHub workflow
2 parents 5bae927 + 27f45cc commit 6d56fb2

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,26 @@ jobs:
285285
- uses: actions/checkout@v2
286286
- run: ci/install-dependencies.sh
287287
- run: ci/run-static-analysis.sh
288+
sparse:
289+
needs: ci-config
290+
if: needs.ci-config.outputs.enabled == 'yes'
291+
env:
292+
jobname: sparse
293+
runs-on: ubuntu-20.04
294+
steps:
295+
- name: Download a current `sparse` package
296+
# Ubuntu's `sparse` version is too old for us
297+
uses: git-for-windows/get-azure-pipelines-artifact@v0
298+
with:
299+
repository: git/git
300+
definitionId: 10
301+
artifact: sparse-20.04
302+
- name: Install the current `sparse` package
303+
run: sudo dpkg -i sparse-20.04/sparse_*.deb
304+
- uses: actions/checkout@v2
305+
- name: Install other dependencies
306+
run: ci/install-dependencies.sh
307+
- run: make sparse
288308
documentation:
289309
needs: ci-config
290310
if: needs.ci-config.outputs.enabled == 'yes'

ci/install-dependencies.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ StaticAnalysis)
6565
sudo apt-get -q -y install coccinelle libcurl4-openssl-dev libssl-dev \
6666
libexpat-dev gettext make
6767
;;
68+
sparse)
69+
sudo apt-get -q update -q
70+
sudo apt-get -q -y install libssl-dev libcurl4-openssl-dev \
71+
libexpat-dev gettext zlib1g-dev
72+
;;
6873
Documentation)
6974
sudo apt-get -q update
7075
sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make

0 commit comments

Comments
 (0)