diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 0000000..ff1edf9 --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,36 @@ +name: Build libevp for Linux + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + architecture: [x86, x64] + build_type: [Release] + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup Ninja + uses: ashutoshvarma/setup-ninja@master + with: + version: 1.10.0 + + - name: Build + uses: ashutoshvarma/action-cmake-build@master + with: + build-dir: ${{ runner.workspace }}/build + configure-options: -G Ninja -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc + build-type: ${{ matrix.build_type }} + + - name: Test + working-directory: ${{ runner.workspace }}/build + run: ctest -C ${{ matrix.build-type }}