Update workflow. #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js NVM Manual | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NVM_NODEJS_ORG_MIRROR: https://nodejs.org/dist | |
# ADDITIONAL_PARAMETERS: --without-snapshot | |
# CFLAGS: -O2 | |
# CXXFLAGS: -I/foo/openssl | |
# CXXFLAGS: -I/home/runner/.nvm/.cache/src/node-v0.6.21/files/deps/openssl/include | |
# https://github.com/nodejs/node-gyp/blob/main/docs/Linking-to-OpenSSL.md | |
strategy: | |
matrix: | |
# node-version: [ '0.8.x', '0.6.x' ] | |
node-version: [ '0.6.x' ] | |
# https://groups.google.com/g/mailing.openssl.users/c/Qi5yYi8ZzPo | |
# https://github.com/openssl/openssl/blob/master/INSTALL.md | |
steps: | |
- run: echo $PWD | |
- run: ls | |
- run: ls /usr/local | |
- run: wget https://www.openssl.org/source/openssl-0.9.8r.tar.gz | |
- run: ls | |
- run: tar xvzf openssl-0.9.8r.tar.gz | |
- name: Build OpenSSL | |
working-directory: ./openssl-0.9.8r | |
run: | | |
./config | |
make | |
sudo make install_sw | |
#- run: apt list -a libssl-dev | |
- run: ls /usr/local | |
- run: ls /usr/local/ssl | |
- run: ls /usr/local/ssl/lib | |
- run: sudo apt-get update | |
#- run: sudo apt-get install libssl1.1 | |
- run: sudo apt-get install -y python2.7 | |
#- run: sudo apt-get install -y libssl-dev | |
#- run: ls /usr/include | |
#- run: ls /usr/bin/p* | |
#- run: ls -la /usr/bin/python | |
- run: sudo ln -fs /usr/bin/python2.7 /usr/bin/python | |
#- run: ls -la /usr/bin/python | |
#- run: python --version | |
- uses: actions/checkout@v4 | |
- run: echo $PWD | |
- run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash | |
- run: . $HOME/.nvm/nvm.sh && nvm install 0.6 --without-snapshot --openssl-includes=/usr/local/ssl/include --openssl-libpath=/usr/local/ssl/lib | |
#- run: . $HOME/.nvm/nvm.sh && nvm install 0.6 --without-snapshot --without-ssl | |
#- run: which nvm | |
- run: npm install | |
- run: npm test | |