1212
1313jobs :
1414 build :
15- # The CMake configure and build commands are platform agnostic and should work equally
16- # well on Windows or Mac. You can convert this to a matrix build if you need
17- # cross-platform coverage.
18- # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19- runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ arch : [ubuntu-latest, ubuntu-24.04-arm]
18+ runs-on : ${{ matrix.arch }}
2019
2120 steps :
2221 - uses : actions/checkout@v3
23-
2422 - name : Install Dependencies
2523 run : sudo apt-get update && sudo apt-get install -y clang-tidy libcurl4-openssl-dev
2624
2725 - name : Configure CMake
28- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
29- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
30- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_CLANG_TIDY=clang-tidy
26+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_CLANG_TIDY=clang-tidy -DENABLE_TESTS=ON
3127
3228 - name : Build It
33- # Build your program with the given configuration
3429 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3530
36- build-on-arm-too :
37- runs-on : ubuntu-latest
38- steps :
39- - uses : actions/checkout@v3
40- - uses : uraimo/run-on-arch-action@v2
41- with :
42- arch : aarch64
43- distro : ubuntu20.04
44- run : |
45- apt-get update && apt-get install -y cmake g++ clang-tidy libcurl4-openssl-dev
46- cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_CLANG_TIDY=clang-tidy
47- cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
31+ - name : Test It
32+ run : cd build && make && ctest
4833
4934 build-demo :
5035 runs-on : ubuntu-latest
@@ -68,15 +53,11 @@ jobs:
6853 cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/lambda-install
6954 make
7055 make aws-lambda-package-demo
71-
72-
56+
7357 format :
7458 runs-on : ubuntu-latest
75-
7659 steps :
7760 - uses : actions/checkout@v3
7861
7962 - name : Check Formatting
8063 run : ./ci/codebuild/format-check.sh
81-
82-
0 commit comments