diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 87162da..2e1609d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,25 +11,33 @@ jobs: fail-fast: false matrix: config: - - name: Ubuntu Latest (GCC) - os: ubuntu-latest - build_type: Release - cc: "gcc" - cxx: "g++" + - name: Ubuntu Latest (GCC) + os: ubuntu-latest + build_type: Release + test_path: WhoaTest + cc: gcc + cxx: g++ + + - name: macOS Latest (Clang) + os: macos-latest + build_type: Release + test_path: WhoaTest + cc: clang + cxx: clang++ steps: - - uses: actions/checkout@v2 - with: - submodules: recursive + - uses: actions/checkout@v3 + with: + submodules: recursive - - name: Prepare - run: mkdir build + - name: Prepare + run: mkdir build - - name: Configure - run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + - name: Configure + run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} - - name: Build - run: cd build && make install + - name: Build + run: cmake --build build --config ${{ matrix.config.build_type }} - - name: Test - run: cd build && ./dist/bin/WhoaTest + - name: Test + run: ./build/bin/${{ matrix.config.test_path }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3abf2b3..451caa7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,25 +14,33 @@ jobs: fail-fast: false matrix: config: - - name: Ubuntu Latest (GCC) - os: ubuntu-latest - build_type: Release - cc: "gcc" - cxx: "g++" + - name: Ubuntu Latest (GCC) + os: ubuntu-latest + build_type: Release + test_path: WhoaTest + cc: gcc + cxx: g++ + + - name: macOS Latest (Clang) + os: macos-latest + build_type: Release + test_path: WhoaTest + cc: clang + cxx: clang++ steps: - - uses: actions/checkout@v2 - with: - submodules: recursive + - uses: actions/checkout@v3 + with: + submodules: recursive - - name: Prepare - run: mkdir build + - name: Prepare + run: mkdir build - - name: Configure - run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + - name: Configure + run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} - - name: Build - run: cd build && make install + - name: Build + run: cmake --build build --config ${{ matrix.config.build_type }} - - name: Test - run: cd build && ./dist/bin/WhoaTest + - name: Test + run: ./build/bin/${{ matrix.config.test_path }}