Skip to content

bump github actions #302

bump github actions

bump github actions #302

Workflow file for this run

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
steps:
- run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake libtool libgmp-dev libmpfr-dev libmpc-dev
wget https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.8.5/gcc-4.8.5.tar.bz2
tar -xjf gcc-4.8.5.tar.bz2
cd gcc-4.8.5
wget https://trac.macports.org/raw-attachment/ticket/53076/patch-gcc46-texi.diff
git apply patch-gcc46-texi.diff
wget https://raw.githubusercontent.com/ChrisMacGregor/esp-open-sdk/master/1001-fix-reload1-compile-error.patch
git apply 1001-fix-reload1-compile-error.patch
wget -O ec1cc0.patch https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;h=ec1cc0263f156f70693a62cf17b254a0029f4852
cat ec1cc0.patch
git apply ec1cc0.patch
./configure --prefix ${{ github.workspace }}/gcc --enable-languages=c,c++ --disable-libada --disable-libssp
make -j $(nproc)
sduo make install
- uses: actions/checkout@v4
- 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 --build .
cmake --install .
- name: test
working-directory: tests/cmake
run: |
CC=gcc-4.8 CXX=g++-4.8 cmake . -DTEST:STRING="defaults-enabled"
cmake --build .
gcc-12:
name: GCC 12
runs-on: ubuntu-latest
container:
image: ubuntu:jammy-20231004 # 22.04
env:
CC: /usr/bin/gcc-12
CXX: /usr/bin/g++-12
steps:
- run: |
apt-get update
apt-get install -y g++-12 wget make libssl-dev
- uses: actions/checkout@v4
- 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 --build .
cmake --install .
- name: test
working-directory: tests/cmake
run: |
CC=gcc-12 CXX=g++-12 cmake . -DCMAKE_CXX_STANDARD=20 -DTEST:STRING="defaults-enabled"
cmake --build .