fixed cmake error #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cpp-17:gcc-12:ubuntu-22.04-qemu-arm | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
build_mode: ["Release", "Debug"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Qemu, GCC ARM, and Ninja | |
run: sudo apt update && sudo apt install qemu-user g++-arm-linux-gnueabi gcc-arm-linux-gnueabi ninja-build | |
- name: Install GTest | |
run: git clone https://github.com/google/googletest.git -b v1.13.0 --depth=1 third_party/googletest && cd third_party/googletest && mkdir build && cd build && cmake .. -DCMAKE_CXX_COMPILER=arm-linux-gnueabi-g++ -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -GNinja && sudo ninja install | |
- name: Build Tests | |
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_mode}} -DSTX_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=arm-linux-gnueabi-g++ -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -GNinja && ninja | |
- name: Run Tests | |
run: qemu-arm -L /usr/arm-linux-gnueabi/ ./build/stx_tests |