mirror of
https://github.com/VSCodium/vscode-linux-build-agent.git
synced 2025-12-11 19:44:40 -06:00
revert: use node-16
This commit is contained in:
parent
0364e38220
commit
52823f5550
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -10,14 +10,14 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
# - alpine-x64
|
- alpine-x64
|
||||||
# - alpine-arm64
|
- alpine-arm64
|
||||||
- focal-x64
|
- focal-x64
|
||||||
# - focal-arm64
|
- focal-arm64
|
||||||
# - focal-armhf
|
- focal-armhf
|
||||||
# - focal-ppc64le
|
- focal-ppc64le
|
||||||
# - centos7-devtoolset8-arm64
|
- centos7-devtoolset8-arm64
|
||||||
# - centos7-devtoolset8-x64
|
- centos7-devtoolset8-x64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
@ -54,7 +54,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
|
|||||||
RUN apt-get update && apt-get install -y yarn
|
RUN apt-get update && apt-get install -y yarn
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||||
RUN apt-get update && apt-get install -y nodejs
|
RUN apt-get update && apt-get install -y nodejs
|
||||||
RUN npm install -g npm@latest
|
RUN npm install -g npm@latest
|
||||||
RUN npm install -g node-gyp
|
RUN npm install -g node-gyp
|
||||||
|
|||||||
@ -54,7 +54,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
|
|||||||
RUN apt-get update && apt-get install -y yarn
|
RUN apt-get update && apt-get install -y yarn
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||||
RUN apt-get update && apt-get install -y nodejs
|
RUN apt-get update && apt-get install -y nodejs
|
||||||
RUN npm install -g npm@latest
|
RUN npm install -g npm@latest
|
||||||
RUN npm install -g node-gyp
|
RUN npm install -g node-gyp
|
||||||
|
|||||||
@ -45,7 +45,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
|
|||||||
RUN apt-get update && apt-get install -y yarn
|
RUN apt-get update && apt-get install -y yarn
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||||
RUN apt-get update && apt-get install -y nodejs
|
RUN apt-get update && apt-get install -y nodejs
|
||||||
RUN npm install -g npm@latest
|
RUN npm install -g npm@latest
|
||||||
RUN npm install -g node-gyp
|
RUN npm install -g node-gyp
|
||||||
|
|||||||
@ -67,20 +67,16 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
|
# RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
|
||||||
# && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
|
# && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
|
||||||
|
|
||||||
# NVM
|
# Yarn
|
||||||
ENV NVM_VERSION v0.39.7
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||||
ENV NVM_DIR /$HOME/.nvm
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
RUN apt-get update && apt-get install -y yarn
|
||||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
|
||||||
RUN mkdir $NVM_DIR
|
|
||||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
RUN wget https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-linux-x64-glibc-217.tar.xz
|
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||||
RUN tar -xf node-v18.19.0-linux-x64-glibc-217.tar.xz
|
RUN apt-get update && apt-get install -y nodejs
|
||||||
RUN mkdir -p ~/.nvm/versions/node && mv node-v18.19.0-linux-x64-glibc-217 ~/.nvm/versions/node/v18.99.0
|
RUN npm install -g npm@latest
|
||||||
RUN bash -c 'source $NVM_DIR/nvm.sh && nvm use 18.99.0'
|
RUN npm install -g node-gyp
|
||||||
RUN npm install -g npm@latest node-gyp yarn
|
|
||||||
|
|
||||||
# Set python3 as default
|
# Set python3 as default
|
||||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
|
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user