Skip to content

Commit 1391aef

Browse files
trxcllntNo9
authored andcommitted
install lldb from llvm apt repos when not packaged by Ubuntu, update node versions matrix
1 parent ca514b8 commit 1391aef

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

.github/workflows/push.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ jobs:
1919
- version: 10.x
2020
- version: 12.x
2121
- version: 14.x
22-
- version: 15.x
22+
- version: 16.x
23+
- version: 18.x
24+
- version: 19.x
2325
mirror: https://nodejs.org/download/nightly
24-
- version: 15.x
26+
- version: 19.x
2527
mirror: https://nodejs.org/download/v8-canary
2628
# os: [ubuntu-latest, macos-latest]
2729
# Temporarily disable MacOS until
2830
# https://github.com/nodejs/node/issues/32981 is fixed
2931
# TODO(mmarchini): test on 20.04 (need different lldb version)
3032
os: [ubuntu-18.04, ubuntu-20.04]
31-
llvm: [ 8, 9, 10, 11, 12, 13 ]
33+
llvm: [8, 9, 10, 11, 12, 13, 14]
3234
steps:
3335
- uses: actions/checkout@v1
3436
- name: Use Node.js ${{ matrix.node.version }} ${{ matrix.node.mirror }}
@@ -40,6 +42,28 @@ jobs:
4042
- name: install dependencies Linux
4143
if: startsWith(matrix.os, 'ubuntu-')
4244
run: |
45+
use_llvm_repos=0
46+
47+
case "${{ matrix.os }}-${{ matrix.llvm }}" in
48+
ubuntu18.04-10) use_llvm_repos=1;;
49+
ubuntu18.04-11) use_llvm_repos=1;;
50+
ubuntu18.04-12) use_llvm_repos=1;;
51+
ubuntu18.04-13) use_llvm_repos=1;;
52+
ubuntu18.04-14) use_llvm_repos=1;;
53+
ubuntu20.04-13) use_llvm_repos=1;;
54+
ubuntu20.04-14) use_llvm_repos=1;;
55+
*) use_llvm_repos=0;;
56+
esac
57+
58+
if [[ ${use_llvm_repos} == 1 ]]; then
59+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -;
60+
release="$(lsb_release -cs)"
61+
cat << EOF | sudo tee /etc/apt/sources.list.d/llvm-${{ matrix.llvm }}.list
62+
deb http://apt.llvm.org/${release}/ llvm-toolchain-${release}-${{ matrix.llvm }} main
63+
deb-src http://apt.llvm.org/${release}/ llvm-toolchain-${release}-${{ matrix.llvm }} main
64+
EOF
65+
fi
66+
4367
sudo apt-get -qq update
4468
sudo apt-get install lldb-${{ matrix.llvm }} liblldb-${{ matrix.llvm }}-dev lcov gdb -y
4569
sudo ln -s $(which lldb-${{ matrix.llvm }}) /usr/bin/lldb
@@ -48,13 +72,13 @@ jobs:
4872
npm install --llnode_build_addon=true --llnode_coverage=true
4973
- name: run tests
5074
run: TEST_LLDB_BINARY=`which lldb-${{ matrix.llvm }}` npm run nyc-test-all
51-
if: matrix.node.version != '15.x'
75+
if: matrix.node.version != '19.x'
5276
- name: run tests (nightly)
5377
run: TEST_LLDB_BINARY=`which lldb-${{ matrix.llvm }}` npm run nyc-test-all
54-
if: matrix.node.version == '15.x'
78+
if: matrix.node.version == '19.x'
5579
continue-on-error: true
5680
- name: prepare coverage
57-
if: startsWith(matrix.os, 'ubuntu-') && matrix.node.version != '15.x'
81+
if: startsWith(matrix.os, 'ubuntu-') && matrix.node.version != '19.x'
5882
run: |
5983
npm run coverage
6084
cat ./coverage-js.info > ./coverage.info
@@ -70,7 +94,7 @@ jobs:
7094
- name: Use Node.js LTS
7195
uses: actions/setup-node@v1
7296
with:
73-
node-version: 12.x
97+
node-version: 18.x
7498
- name: npm install, build, and test
7599
run: |
76100
sudo apt-get -qq update

0 commit comments

Comments
 (0)