Skip to content

Commit

Permalink
Bump GitHub Actions to latest versions (#326)
Browse files Browse the repository at this point in the history
* bump actions

* avoid conflicts

* work around nodejs being too new

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04

* clang-format-14 needs ubuntu 22

* dont use source

* limit check to v3 

there no docker image for node 20 on debian buster with gcc-4.8 and ubuntu 18 has a glibc that is too low

we'll need to checkout manually when needed

* explicit format

* Update jwt.yml

* clean up attempt code
  • Loading branch information
prince-chrismc authored Jan 23, 2024
1 parent 3f178ce commit 8ed685e
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 37 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
default-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand All @@ -36,7 +36,7 @@ jobs:
default-linux-with-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand All @@ -55,7 +55,7 @@ jobs:
default-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- run: choco install openssl

Expand All @@ -75,7 +75,7 @@ jobs:
min-req:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install/cmake
with:
version: "3.14.7"
Expand All @@ -98,7 +98,7 @@ jobs:
custom-install-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand All @@ -117,7 +117,7 @@ jobs:
custom-install-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- run: choco install openssl

Expand All @@ -137,7 +137,7 @@ jobs:
no-pico:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand All @@ -156,7 +156,7 @@ jobs:
no-base64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand All @@ -175,7 +175,7 @@ jobs:
with-libressl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/libressl

Expand All @@ -195,7 +195,7 @@ jobs:
with-wolfssl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/wolfssl
with:
Expand All @@ -217,7 +217,7 @@ jobs:
with-hunter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest

- name: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- if: matrix.os == 'macos-latest'
run: sudo cp /usr/local/opt/[email protected]/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: cmake -E make_directory ${{ github.workspace }}/build

- name: configure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ssciwr/doxygen-install@v1
with:
version: "1.10.0"
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/jwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/danielaparker-jsoncons
Expand All @@ -27,15 +27,16 @@ jobs:
working-directory: build
run: make jwt-cpp-test coverage

- uses: coverallsapp/github-action@1.1.3
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/coverage.info
file: build/coverage.info
format: lcov

fuzzing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest

Expand All @@ -62,7 +63,7 @@ jobs:
- { tag: "openssl-3.0.5", name: "3.0.5" }
- { tag: "OpenSSL_1_1_1q", name: "1.1.1q" }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/openssl
Expand Down Expand Up @@ -91,7 +92,7 @@ jobs:
ubsan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest

Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run: |
sudo apt-get install clang-format-14
shopt -s globstar
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: clang-format-14 -i ${{ matrix.files }}
- uses: ./.github/actions/process-linting-results
with:
Expand All @@ -41,7 +41,7 @@ jobs:
python-version: "3.x"
- run: pip install cmakelang
- run: shopt -s globstar
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: cmake-format -i ${{ matrix.files }}
- uses: ./.github/actions/process-linting-results
with:
Expand All @@ -52,7 +52,7 @@ jobs:
steps:
- run: sudo apt-get install clang-tidy
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: configure
run: |
mkdir build
Expand All @@ -66,7 +66,7 @@ jobs:
linter_name: clang-tidy

render-defaults:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -78,22 +78,24 @@ jobs:
- { name: "open_source_parsers_jsoncpp", library: "jsoncpp", url: "https://github.com/open-source-parsers/jsoncpp", disable_pico: true }
name: render-defaults (${{ matrix.traits.name }})
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
sudo apt-get install clang-format-14
- uses: ./.github/actions/render/defaults
id: render
with:
traits_name: ${{ matrix.traits.name }}
library_name: ${{ matrix.traits.library }}
library_url: ${{ matrix.traits.url }}
disable_default_traits: ${{ matrix.traits.disable_pico }}
- run: clang-format -i ${{ steps.render.outputs.file_path }}
- run: clang-format-14 -i ${{ steps.render.outputs.file_path }}
- run: git add ${{ steps.render.outputs.file_path }}
- uses: ./.github/actions/process-linting-results
with:
linter_name: render-defaults

render-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -105,13 +107,15 @@ jobs:
- { name: "open_source_parsers_jsoncpp", suite: "OspJsoncppTest" }
name: render-tests (${{ matrix.traits.name }})
steps:
- uses: actions/checkout@v3
- run: shopt -s globstar
- uses: actions/checkout@v4
- run: |
sudo apt-get install clang-format-14
shopt -s globstar
- uses: ./.github/actions/render/tests
with:
traits_name: ${{ matrix.traits.name }}
test_suite_name: ${{ matrix.traits.suite }}
- run: clang-format -i tests/**/*.cpp
- run: clang-format-14 -i tests/**/*.cpp
- run: git add tests/traits/*
- uses: ./.github/actions/process-linting-results
with:
Expand All @@ -120,7 +124,7 @@ jobs:
line-ending:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git add --renormalize .
- uses: ./.github/actions/process-linting-results
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- { tag: "OpenSSL_1_0_1u", name: "1.0.1u" }
name: OpenSSL ${{ matrix.openssl.name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/openssl
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
name: OpenSSL 3.0 No Deprecated
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/openssl
Expand All @@ -61,7 +61,7 @@ jobs:
libressl: ["3.5.3", "3.4.3", "3.3.6"]
name: LibreSSL ${{ matrix.libressl }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/libressl
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- { ref: "v5.3.0-stable", name: "5.3.0"}
name: wolfSSL ${{ matrix.wolfssl.name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/wolfssl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- run: |
apt-get update
apt-get install -y g++-4.8 wget make libssl-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v3 # Can not be upgrade as v4 needs NodeJS 20 doesn't exist next to gcc-4.8
- uses: ./.github/actions/install/cmake
with:
version: "3.26.3"
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- run: |
apt-get update
apt-get install -y g++-12 wget make libssl-dev
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install/cmake
with:
version: "3.26.3"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/traits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- { name: "kazuho-picojson", tag: "111c9be5188f7350c2eac9ddaedd8cca3d7bf394", version: "111c9be" }
- { name: "open-source-parsers-jsoncpp", tag: "1.9.5", version: "v1.9.5" }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: setup
run: |
Expand Down

0 comments on commit 8ed685e

Please sign in to comment.