diff --git a/.github/workflows/cmake-lint.yml b/.github/workflows/cmake-lint.yml index 22b96df..8046092 100644 --- a/.github/workflows/cmake-lint.yml +++ b/.github/workflows/cmake-lint.yml @@ -8,15 +8,15 @@ on: jobs: lint: name: "cmake lint" - runs-on: ubuntu-22.04 + runs-on: 'alpine:latest' steps: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get update -y - sudo apt-get -y --no-install-recommends install \ - python3-pip='22.*' - pip install cmakelint + sudo apk update + sudo apk add \ + py3-pip + pip install --break-system-packages cmakelint - name: Execute cmakelint run: find . \( \( -path './build' -o -path '*/.*' \) -prune \) -o \( -type f -a -iname 'CMakeLists.txt' \) diff --git a/.github/workflows/cpp-build.yml b/.github/workflows/cpp-build.yml index 7b57e61..728a62d 100644 --- a/.github/workflows/cpp-build.yml +++ b/.github/workflows/cpp-build.yml @@ -8,7 +8,7 @@ on: jobs: build: name: "gcc/clang build" - runs-on: ubuntu-22.04 + runs-on: 'alpine:latest' strategy: matrix: cpp17_compatibility: [ "ON", "OFF" ] @@ -17,17 +17,17 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get update -y - sudo apt-get -y --no-install-recommends install \ - cmake='3.22.*' \ - gcc-11='11.*' \ - clang='1:14.*' \ - libboost-filesystem-dev='1.74.*' \ - libboost-python-dev='1.74.*' \ - liblua5.4-dev='5.*' \ - libfmt-dev='8.*' \ - libgmock-dev='1.11.*' \ - libgtest-dev='1.11.*' + sudo apk update + sudo apk add \ + cmake \ + gcc \ + clang \ + boost-filesystem \ + boost-python3 \ + lua-dev \ + fmt \ + gmock \ + gtest - name: Execute cmake run: | CXX=/usr/bin/${{ matrix.cpp_compiler }} \ diff --git a/.github/workflows/cpp-lint.yml b/.github/workflows/cpp-lint.yml index 5fb3de7..412be5e 100644 --- a/.github/workflows/cpp-lint.yml +++ b/.github/workflows/cpp-lint.yml @@ -8,22 +8,21 @@ on: jobs: lint: name: "clang-tidy" - runs-on: ubuntu-22.04 + runs-on: 'alpine:latest' steps: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get update -y - sudo apt-get -y --no-install-recommends install \ - cmake='3.22.*' \ - gcc-11='11.*' \ - clang-tidy='1:14.*' \ - libboost-filesystem-dev='1.74.*' \ - libboost-python-dev='1.74.*' \ - liblua5.4-dev='5.*' \ - libfmt-dev='8.*' \ - libgmock-dev='1.11.*' \ - libgtest-dev='1.11.*' + sudo apk update + sudo apk add \ + cmake \ + clang-extra-tools \ + boost-filesystem \ + boost-python3 \ + lua-dev \ + fmt \ + gmock \ + gtest - name: Generate compile_commands.json run: | mkdir -pv build diff --git a/.github/workflows/cpp-unittest.yml b/.github/workflows/cpp-unittest.yml index bf046e7..4c1fb09 100644 --- a/.github/workflows/cpp-unittest.yml +++ b/.github/workflows/cpp-unittest.yml @@ -8,7 +8,7 @@ on: jobs: unittest: name: "unittests" - runs-on: ubuntu-22.04 + runs-on: 'alpine:latest' strategy: matrix: cpp17_compatibility: [ "ON", "OFF" ] @@ -16,17 +16,16 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get update -y - sudo apt-get -y --no-install-recommends install \ - cmake='3.22.*' \ - gcc-11='11.*' \ - clang='1:14.*' \ - libboost-filesystem-dev='1.74.*' \ - libboost-python-dev='1.74.*' \ - liblua5.4-dev='5.*' \ - libfmt-dev='8.*' \ - libgmock-dev='1.11.*' \ - libgtest-dev='1.11.*' + sudo apk update + sudo apk add \ + cmake \ + gcc \ + boost-filesystem \ + boost-python3 \ + lua-dev \ + fmt \ + gmock \ + gtest - name: Execute cmake run: | CXX=/usr/bin/${{ matrix.cpp_compiler }} \ diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 9a7969e..43c1b47 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -8,15 +8,16 @@ on: jobs: format: name: "clang-format/cmake-format" - runs-on: ubuntu-22.04 + runs-on: 'alpine:latest' steps: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get update -y - sudo apt-get -y --no-install-recommends install \ - clang-format='1:14.*' \ - cmake-format='0.6.*' + sudo apk update + sudo apk add \ + clang-extra-tools \ + py3-pip + pip install --break-system-packages cmake-format # Check all source and header C++ files; ignore files in hidden directories - name: Execute clang-format run: find . \( -path '*/.*' -prune \) -o