Fix gcc 12 compiling error #132
Workflow file for this run
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: 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-latest | |
container: | |
image: ubuntu:18.04 | |
env: | |
CC: /usr/bin/gcc-4.8 | |
CXX: /usr/bin/g++-4.8 | |
steps: | |
- run: | | |
apt-get update | |
apt-get install -y g++-4.8 wget make libssl-dev | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install/cmake | |
with: | |
version: "3.26.3" | |
url: "https://cmake.org/files/v3.26/cmake-3.26.3.tar.gz" | |
- name: setup | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
cmake --install . | |
- name: test | |
working-directory: tests/cmake | |
run: | | |
CC=gcc-4.8 CXX=g++-4.8 cmake . -DTEST:STRING="defaults-enabled" | |
cmake --build . |