diff options
author | NRK <nrk@disroot.org> | 2023-06-15 17:25:54 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-06-15 17:25:54 +0200 |
commit | 28018e92d3e2fa47d58a216bab489cbd81d8e974 (patch) | |
tree | 4fdc6076f24c59b6ea44387cdd1f93979eca0129 /.github/workflows/build.yml | |
parent | c03ec39437b473526080f496d6c8564e98bea1d7 (diff) | |
download | nsxiv-28018e92d3e2fa47d58a216bab489cbd81d8e974.tar.zst |
CI: misc cleanups + faster analysis (#449)
* switch to git ls-files to avoid picking up any other local .c files
* enable assertions during static analysis since we used some assertions to
disable/silence certain warnings.
* update TCC commit hash to a more recent one
* parallelize static analysis
cppcheck already has -j argument to parallelize it's analysis and
provide results faster, clang-tidy unfortunately doesn't.
so use xargs -P to archive parallel execution. on my system this brings
down the analysis time from ~27s to ~5s.
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4619bb7..3c3b3c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \ libxft2 libxft-dev libexif12 libexif-dev \ gcc clang git bc - TCC_SHA="027b8fb9b88fe137447fb8bb1b61079be9702472" + TCC_SHA="29ae3ed4d5b83eec43598d6cd7949bccb41c8083" wget "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz" ( cd "tinycc-$TCC_SHA" && ./configure && make -j"$(nproc)" && sudo make install; ) - name: build |