⚙️ Restore support for GCC-4.8 (#246)

* Create workflow for targeting specific platforms/compilers

starts with a GCC-4.8 CentOS base

* make sure to install dev tools

* Update targets.yml

* Update targets.yml

* Update targets.yml

* Update targets.yml

* install CMake by hand

* try ubuntu with gcc 4.8

* fix action

* actions/checkout@v3

* latest cmake + set compiler for CMake

* install g++

* fix compiler passed to cmake

* try to run in docker container

* in container we are root

* try an update

* assume yes

* revert to using gh runner image

* permissions

* replace `codecvt` when required

* pass locale

* fix linter

* linter

* revert changes to actions (min for pr)
This commit is contained in:
Chris Mc
2022-09-17 21:04:40 -07:00
committed by GitHub
parent 25377cb041
commit 484bdb086a
2 changed files with 46 additions and 1 deletions

35
.github/workflows/targets.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Specific Targets CI
on:
push:
branches: [master]
pull_request:
branches: [master]
paths:
- "CMakeLists.txt"
- "cmake/**"
- "include/jwt-cpp/**"
- "tests/cmake/**"
- ".github/actions/**"
- ".github/workflows/targets.yml"
jobs:
gcc-4-8:
name: GCC 4.8
runs-on: ubuntu-18.04
steps:
- run: sudo apt-get install g++-4.8
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v3
- name: setup
run: |
mkdir build
cd build
CC=gcc-4.8 CXX=g++-4.8 cmake ..
sudo cmake --install .
- name: test
working-directory: tests/cmake
run: |
CC=gcc-4.8 CXX=g++-4.8 cmake . -DTEST:STRING="defaults-enabled"
cmake --build .