diff --git a/.github/actions/install/cmake/action.yml b/.github/actions/install/cmake/action.yml index a018583ff..ad8c42e77 100644 --- a/.github/actions/install/cmake/action.yml +++ b/.github/actions/install/cmake/action.yml @@ -12,7 +12,7 @@ runs: steps: - name: Cache CMake id: cache-cmake - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: cmake-${{ inputs.version }} key: ${{ runner.name }}-${{ runner.os }}-${{ runner.arch }}-${{ job.container.id }}-cmake-${{ inputs.version }} diff --git a/.github/actions/render/defaults/action.yml b/.github/actions/render/defaults/action.yml index 4942e00d4..ba4fa3f3c 100644 --- a/.github/actions/render/defaults/action.yml +++ b/.github/actions/render/defaults/action.yml @@ -21,12 +21,12 @@ outputs: runs: using: composite steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 14 - run: npm install mustache shell: bash - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 id: script env: TRAITS_NAME: ${{ inputs.traits_name }} diff --git a/.github/actions/render/tests/action.yml b/.github/actions/render/tests/action.yml index fe1f58649..b268d2977 100644 --- a/.github/actions/render/tests/action.yml +++ b/.github/actions/render/tests/action.yml @@ -10,12 +10,12 @@ inputs: runs: using: composite steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 14 - run: npm install mustache shell: bash - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 env: TRAITS_NAME: ${{ inputs.traits_name }} SUITE_NAME: ${{ inputs.test_suite_name }} diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 968770356..d651ec431 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -117,7 +117,7 @@ jobs: root-hint-install-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: lukka/get-cmake@latest - name: setup diff --git a/.github/workflows/targets.yml b/.github/workflows/targets.yml index dfda4986f..e0cf45719 100644 --- a/.github/workflows/targets.yml +++ b/.github/workflows/targets.yml @@ -17,16 +17,28 @@ jobs: gcc-4-8: name: GCC 4.8 runs-on: ubuntu-latest - container: - image: ubuntu:bionic-20230530 # 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 # Can not be upgrade as v4 needs NodeJS 20 doesn't exist next to gcc-4.8 + 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://gist.githubusercontent.com/prince-chrismc/c27afb5f87dae1a7ea76341218672088/raw/923bade73ac1c848fe841599a2d469caac8e16f2/gcc4.8-ec1cc0.patch + 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"