Skip to content

Commit d997651

Browse files
committed
Move linux build setup to a script so we can install newer NodeJS
1 parent 656cc79 commit d997651

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
apt-get update -y
4+
apt install -y software-properties-common
5+
apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
6+
apt install -y gcc-8 g++-8 autoconf automake build-essential clang cmake execstack fakeroot g++-5 git libc-ares-dev libctemplate-dev curl libglib2.0-dev libgnome-keyring-dev libicu-dev libsasl2-dev libsasl2-modules libsasl2-modules-gssapi-mit libsecret-1-dev libssl-dev libnss3 libnss3-dev libtidy-dev libtool libxext-dev libxkbfile-dev libxml2-dev libxtst-dev rpm uuid-dev xvfb
7+
8+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
9+
10+
export NVM_DIR="$HOME/.nvm"
11+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
12+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
13+
14+
nvm install 16.15.1
15+
nvm alias default 16.15.1
16+
17+
export PATH="$PATH:$(dirname $(nvm which current))"

.github/workflows/build-linux.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Install deps
14-
run: |
15-
apt-get update -y
16-
apt install -y software-properties-common
17-
apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
18-
apt install -y nodejs autoconf automake build-essential clang cmake execstack fakeroot g++-5 git libc-ares-dev libctemplate-dev libcurl4-openssl-dev libglib2.0-dev libgnome-keyring-dev libicu-dev libsasl2-dev libsasl2-modules libsasl2-modules-gssapi-mit libsecret-1-dev libssl-dev libnss3 libnss3-dev libtidy-dev libtool libxext-dev libxkbfile-dev libxml2-dev libxtst-dev rpm uuid-dev xvfb
14+
run: .github/workflows/build-linux-setup.sh
1915

2016
- name: Checkout Repo
2117
uses: actions/checkout@v3

0 commit comments

Comments
 (0)