mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
CI: workaround for missing Node 20 in older containers
https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
This commit is contained in:
committed by
Mohammad Nejati
parent
75812db90a
commit
a3a800b2e3
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -221,24 +221,26 @@ jobs:
|
|||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check if running in container
|
- name: Setup container environment
|
||||||
if: matrix.container != ''
|
|
||||||
run: echo "GHA_CONTAINER=${{ matrix.container }}" >> $GITHUB_ENV
|
|
||||||
- name: If running in container, upgrade packages
|
|
||||||
if: matrix.container != ''
|
if: matrix.container != ''
|
||||||
run: |
|
run: |
|
||||||
apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata && apt-get -o Acquire::Retries=3 install -y sudo software-properties-common wget curl apt-transport-https make apt-file sudo unzip libssl-dev build-essential autotools-dev autoconf automake g++ libc++-helpers python ruby cpio gcc-multilib g++-multilib pkgconf python3 ccache libpython-dev locales
|
apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata && apt-get -o Acquire::Retries=3 install -y sudo software-properties-common wget curl apt-transport-https make apt-file sudo unzip libssl-dev build-essential autotools-dev autoconf automake g++ libc++-helpers python ruby cpio gcc-multilib g++-multilib pkgconf python3 ccache libpython-dev locales
|
||||||
sudo apt-add-repository ppa:git-core/ppa
|
sudo apt-add-repository ppa:git-core/ppa
|
||||||
sudo apt-get -o Acquire::Retries=3 update && apt-get -o Acquire::Retries=3 -y install git
|
sudo apt-get -o Acquire::Retries=3 update && apt-get -o Acquire::Retries=3 -y install git
|
||||||
python_version=$(python3 -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')
|
python_version=$(python3 -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')
|
||||||
if [[ ${python_version} =~ ^3\.[0-5]$ ]]; then
|
if [[ ${python_version} =~ ^3\.[0-5]$ ]]; then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
apt-get install -y python3-distutils
|
apt-get install -y python3-distutils
|
||||||
fi
|
fi
|
||||||
sudo wget https://bootstrap.pypa.io/pip/$python_version/get-pip.py
|
sudo wget https://bootstrap.pypa.io/pip/$python_version/get-pip.py
|
||||||
sudo python3 get-pip.py
|
sudo python3 get-pip.py
|
||||||
sudo /usr/local/bin/pip install cmake
|
sudo /usr/local/bin/pip install cmake
|
||||||
|
|
||||||
|
if [[ "${{matrix.container}}" == "ubuntu:16.04" ]] || [[ "${{matrix.container}}" == "ubuntu:18.04" ]]; then
|
||||||
|
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
|
Reference in New Issue
Block a user