Skip to content

Commit b413553

Browse files
committed
remove
1 parent 83b8d8c commit b413553

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
2+
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
3+
name: CI-unixish
4+
5+
on:
6+
push:
7+
branches:
8+
- 'main'
9+
- 'releases/**'
10+
- '2.*'
11+
tags:
12+
- '2.*'
13+
pull_request:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build:
20+
21+
strategy:
22+
matrix:
23+
os: [macos-15]
24+
include:
25+
- os: macos-15
26+
xdist_n: '1'
27+
fail-fast: false # Prefer quick result
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
35+
36+
- name: ccache
37+
uses: hendrikmuhs/ccache-action@v1.2
38+
with:
39+
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
40+
41+
- name: Install missing software on ubuntu
42+
if: contains(matrix.os, 'ubuntu')
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install libxml2-utils
46+
47+
# packages for strict cfg checks
48+
- name: Install missing software on ubuntu 22.04 (cfg)
49+
if: matrix.os == 'ubuntu-22.04'
50+
run: |
51+
sudo apt-get install libcairo2-dev libcurl4-openssl-dev liblua5.3-dev libssl-dev libsqlite3-dev libcppunit-dev libsigc++-2.0-dev libgtk-3-dev libboost-all-dev libselinux-dev libwxgtk3.0-gtk3-dev xmlstarlet qtbase5-dev
52+
53+
# coreutils contains "nproc"
54+
- name: Install missing software on macos
55+
if: contains(matrix.os, 'macos')
56+
run: |
57+
# pcre was removed from runner images in November 2022
58+
brew install coreutils pcre gnu-sed
59+
60+
- name: Install missing Python packages on ubuntu
61+
if: contains(matrix.os, 'ubuntu')
62+
run: |
63+
python3 -m pip install pip --upgrade
64+
python3 -m pip install pytest
65+
python3 -m pip install pytest-timeout
66+
python3 -m pip install pytest-xdist
67+
python3 -m pip install psutil
68+
69+
# we need to use -break-system-packages --user because the common approaches do not work.
70+
# using pip works but it appears to install the packages into a different Python installation so they are not found later on.
71+
# using python3 -m pip without the additional flags fails since the packages are being managed by a different tool (brew) and that lacks some of the packages.
72+
# using pipx also does not work.
73+
- name: Install missing Python packages on macos
74+
if: contains(matrix.os, 'macos')
75+
run: |
76+
python3 -m pip install --break-system-packages --user pip --upgrade
77+
python3 -m pip install --break-system-packages --user pytest
78+
python3 -m pip install --break-system-packages --user pytest-timeout
79+
python3 -m pip install --break-system-packages --user pytest-xdist
80+
python3 -m pip install --break-system-packages --user psutil
81+
82+
- name: Build cppcheck
83+
run: |
84+
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
85+
make -j$(nproc) CXXOPTS="-Werror" HAVE_RULES=yes
86+
87+
- name: Run test/cli (-j2)
88+
run: |
89+
python3 -m pytest -Werror --strict-markers -vv -n ${{ matrix.xdist_n }} test/cli
90+
env:
91+
TEST_CPPCHECK_INJECT_J: 2

0 commit comments

Comments
 (0)