Skip to content

Commit 88d0551

Browse files
Fix linux tests
1 parent ab6aa7d commit 88d0551

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Install Dependencies for Ubuntu
2222
# git >= 2.18 required for actions/checkout git support
23-
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang libssl-dev libkrb5-dev libc++-dev wget
23+
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang-8 lld-8 libssl-dev libkrb5-dev libc++-dev wget
2424
env:
2525
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2626

@@ -29,6 +29,9 @@ jobs:
2929
CC: clang
3030
CXX: clang++
3131
run: |
32+
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100
33+
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
34+
update-alternatives --install /usr/bin/ld ld /usr/bin/lld-8 100
3235
mkdir ~/python
3336
cd ~/python
3437
wget https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tgz
@@ -65,10 +68,17 @@ jobs:
6568
CXX: clang++
6669
npm_config_clang: 1
6770
GYP_DEFINES: use_obsolete_asm=true
71+
AR: "/usr/lib/llvm-8/bin/llvm-ar"
72+
NM: "/usr/lib/llvm-8/bin/llvm-nm"
73+
# ranlib is not needed, and doesn't support .bc files in .a
74+
RANLIB: /bin/true
6875
# There is a race condition in node/generate that needs to be fixed
6976
# Node 16 changed the logic it uses to select it's UID which means to make node run as root and not 1001, we need to chwon the current directory. More Details:
7077
# https://stackoverflow.com/questions/70298238/getting-eaccess-when-running-npm-8-as-root
7178
run: |
79+
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100
80+
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
81+
update-alternatives --install /usr/bin/ld ld /usr/bin/lld-8 100
7282
chown root.root -R .
7383
npm set unsafe-perm true
7484
node utils/retry npm install

0 commit comments

Comments
 (0)