forked from boostorg/intrusive
Merge pull request #64 from sdarwin/feature/gha_fix_1
Update GitHub Actions CI file
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -21,7 +21,8 @@ jobs:
|
|||||||
buildtype: "boost"
|
buildtype: "boost"
|
||||||
packages: ""
|
packages: ""
|
||||||
packages_to_remove: ""
|
packages_to_remove: ""
|
||||||
os: "ubuntu-16.04"
|
os: "ubuntu-20.04"
|
||||||
|
container: "ubuntu:16.04"
|
||||||
cxx: "g++"
|
cxx: "g++"
|
||||||
sources: ""
|
sources: ""
|
||||||
llvm_os: ""
|
llvm_os: ""
|
||||||
@ -30,9 +31,10 @@ jobs:
|
|||||||
cxxstd: "03,11"
|
cxxstd: "03,11"
|
||||||
- name: "TOOLSET=clang CXXSTD=03,11,14,1z Job 1"
|
- name: "TOOLSET=clang CXXSTD=03,11,14,1z Job 1"
|
||||||
buildtype: "boost"
|
buildtype: "boost"
|
||||||
packages: "libstdc++-4.9-dev"
|
packages: "libstdc++-4.9-dev clang"
|
||||||
packages_to_remove: ""
|
packages_to_remove: ""
|
||||||
os: "ubuntu-16.04"
|
os: "ubuntu-20.04"
|
||||||
|
container: "ubuntu:16.04"
|
||||||
cxx: "clang++"
|
cxx: "clang++"
|
||||||
sources: ""
|
sources: ""
|
||||||
llvm_os: ""
|
llvm_os: ""
|
||||||
@ -47,6 +49,16 @@ jobs:
|
|||||||
- name: Check if running in container
|
- name: Check if running in container
|
||||||
if: matrix.container != ''
|
if: matrix.container != ''
|
||||||
run: echo "GHA_CONTAINER=${{ matrix.container }}" >> $GITHUB_ENV
|
run: echo "GHA_CONTAINER=${{ matrix.container }}" >> $GITHUB_ENV
|
||||||
|
- name: If running in container, upgrade packages
|
||||||
|
if: matrix.container != ''
|
||||||
|
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
|
||||||
|
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
|
||||||
|
python_version=$(python3 -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')
|
||||||
|
sudo wget https://bootstrap.pypa.io/pip/$python_version/get-pip.py
|
||||||
|
sudo python3 get-pip.py
|
||||||
|
sudo /usr/local/bin/pip install cmake
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user