Update CI to Ubuntu 20.04 and to newer versions of actions

This commit is contained in:
Dimitrij Mijoski
2022-09-27 20:38:46 +02:00
committed by Victor Zverovich
parent 48f525d025
commit 6e0a5f7fba
4 changed files with 19 additions and 19 deletions

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Create Build Environment - name: Create Build Environment
run: | run: |

View File

@ -7,71 +7,71 @@ permissions:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }} runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
cxx: [g++-4.8, g++-10, clang++-9] cxx: [g++-4.8, g++-10, clang++-9]
build_type: [Debug, Release] build_type: [Debug, Release]
std: [11] std: [11]
os: [ubuntu-18.04]
include: include:
- cxx: g++-4.8 - cxx: g++-4.8
install: sudo apt install g++-4.8 install: sudo apt install g++-4.8
os: ubuntu-18.04
- cxx: g++-8 - cxx: g++-8
build_type: Debug build_type: Debug
std: 14 std: 14
install: sudo apt install g++-8 install: sudo apt install g++-8
os: ubuntu-18.04
- cxx: g++-8 - cxx: g++-8
build_type: Debug build_type: Debug
std: 17 std: 17
install: sudo apt install g++-8 install: sudo apt install g++-8
os: ubuntu-18.04
- cxx: g++-9 - cxx: g++-9
build_type: Debug build_type: Debug
std: 17 std: 17
install: sudo apt install g++-9
os: ubuntu-18.04
- cxx: g++-10 - cxx: g++-10
build_type: Debug build_type: Debug
std: 17 std: 17
os: ubuntu-18.04
- cxx: g++-11 - cxx: g++-11
build_type: Debug build_type: Debug
std: 20 std: 20
os: ubuntu-20.04
install: sudo apt install g++-11 install: sudo apt install g++-11
- cxx: clang++-8 - cxx: clang++-8
build_type: Debug build_type: Debug
std: 17 std: 17
cxxflags: -stdlib=libc++ cxxflags: -stdlib=libc++
os: ubuntu-18.04
install: sudo apt install clang-8 libc++-8-dev libc++abi-8-dev install: sudo apt install clang-8 libc++-8-dev libc++abi-8-dev
- cxx: clang++-9
install: sudo apt install clang-9
- cxx: clang++-9 - cxx: clang++-9
build_type: Debug build_type: Debug
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
std: 17 std: 17
os: ubuntu-18.04 install: sudo apt install clang-9
- cxx: clang++-11 - cxx: clang++-11
build_type: Debug build_type: Debug
std: 20 std: 20
os: ubuntu-20.04
- cxx: clang++-11 - cxx: clang++-11
build_type: Debug build_type: Debug
std: 20 std: 20
cxxflags: -stdlib=libc++ cxxflags: -stdlib=libc++
os: ubuntu-20.04
install: sudo apt install libc++-11-dev libc++abi-11-dev install: sudo apt install libc++-11-dev libc++abi-11-dev
- shared: -DBUILD_SHARED_LIBS=ON - shared: -DBUILD_SHARED_LIBS=ON
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Add repositories for older GCC
run: |
# Bellow two repos provide GCC 4.8, 5.5 and 6.4
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic main'
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic universe'
# Bellow two repos additionally update GCC 6 to 6.5
# sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates main'
# sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates universe'
if: ${{ matrix.cxx == 'g++-4.8' }}
- name: Create Build Environment - name: Create Build Environment
run: | run: |
${{matrix.install}} ${{matrix.install}}
sudo apt update
sudo apt install locales-all sudo apt install locales-all
cmake -E make_directory ${{runner.workspace}}/build cmake -E make_directory ${{runner.workspace}}/build

View File

@ -15,7 +15,7 @@ jobs:
- shared: -DBUILD_SHARED_LIBS=ON - shared: -DBUILD_SHARED_LIBS=ON
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Create Build Environment - name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build run: cmake -E make_directory ${{runner.workspace}}/build

View File

@ -41,7 +41,7 @@ jobs:
standard: 20 standard: 20
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Create Build Environment - name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build run: cmake -E make_directory ${{runner.workspace}}/build
@ -82,7 +82,7 @@ jobs:
release: false release: false
msystem: ${{matrix.sys}} msystem: ${{matrix.sys}}
pacboy: cc:p cmake:p ninja:p lld:p pacboy: cc:p cmake:p ninja:p lld:p
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Configure - name: Configure
run: cmake -B ../build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug run: cmake -B ../build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug
env: { LDFLAGS: -fuse-ld=lld } env: { LDFLAGS: -fuse-ld=lld }