Skip to content

Commit f575714

Browse files
authored
Update codeql runs-on ubuntu version to 22.04 (#1007)
Becuase we see error message "This is a scheduled Ubuntu 20.04 retirement. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see actions/runner-images#11101".
1 parent 2ddc436 commit f575714

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- 'master'
99
- '202[0-9][0-9][0-9]'
10-
pull_request_target:
10+
pull_request:
1111
branches:
1212
- 'master'
1313
- '202[0-9][0-9][0-9]'
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
analyze:
1818
name: Analyze
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
permissions:
2121
actions: read
2222
contents: read
@@ -54,11 +54,11 @@ jobs:
5454
libzmq3-dev \
5555
libzmq5 \
5656
swig3.0 \
57-
libpython2.7-dev \
57+
libpython3-dev \
5858
libgtest-dev \
5959
libgmock-dev \
60-
libboost1.71-dev \
61-
libboost-serialization1.71-dev \
60+
libboost-dev \
61+
libboost-serialization-dev \
6262
dh-exec \
6363
doxygen \
6464
cdbs \
@@ -68,15 +68,14 @@ jobs:
6868
autoconf-archive \
6969
uuid-dev \
7070
libjansson-dev \
71-
nlohmann-json3-dev \
72-
python
71+
nlohmann-json3-dev
7372
7473
- if: matrix.language == 'cpp'
7574
name: build-swss-common
7675
run: |
7776
set -x
7877
./autogen.sh
79-
fakeroot dpkg-buildpackage -us -uc -b
78+
dpkg-buildpackage -rfakeroot -us -uc -b -Pnoyangmod,nopython2 -j$(nproc)
8079
8180
- name: Perform CodeQL Analysis
8281
uses: github/codeql-action/[email protected]

0 commit comments

Comments
 (0)