diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index ab60ecbf..b4ec6ea3 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -25,13 +25,13 @@ jobs: database: test_ormppdb - name: Configure cmake - run: cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_MYSQL=ON + run : cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_MYSQL=ON - name: Build - run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} + run : cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} - name: Test working-directory: ${{ github.workspace }}/build - env: + env : CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file + run : ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file diff --git a/.github/workflows/ci-pgsql.yml b/.github/workflows/ci-pgsql.yml index a4ff2bdb..f581a6d0 100644 --- a/.github/workflows/ci-pgsql.yml +++ b/.github/workflows/ci-pgsql.yml @@ -11,9 +11,17 @@ jobs: strategy: fail-fast: false matrix: - compiler: [ gcc, clang ] configuration: [ Debug, Release ] os: [ ubuntu-latest ] # macos-latest, ubuntu-latest, windows-latest + include: + - os: ubuntu-latest + compiler: gcc + cc: g++ + cxx: g++ + - os: ubuntu-latest + compiler: clang + cc: clang++ + cxx: clang++ services: postgres: @@ -35,13 +43,16 @@ jobs: uses: actions/checkout@v2 - name: Configure cmake - run: cmake -B${{ github.workspace }}/build -DCMAKE_C_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_PG=ON + env : + CC: ${{ matrix.cc }} + CXX: ${{ matrix.cxx }} + run : cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_PG=ON - name: Build - run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} + run : cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} - name: Test working-directory: ${{ github.workspace }}/build - env: + env : CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file + run : ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file diff --git a/.github/workflows/ci-sqlite.yml b/.github/workflows/ci-sqlite.yml index c3ae9d52..1910ef7c 100644 --- a/.github/workflows/ci-sqlite.yml +++ b/.github/workflows/ci-sqlite.yml @@ -19,13 +19,13 @@ jobs: uses: actions/checkout@v2 - name: Configure cmake - run: cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_SQLITE3=ON + run : cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_SQLITE3=ON - name: Build - run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} + run : cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} - name: Test working-directory: ${{ github.workspace }}/build - env: + env : CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file + run : ctest -C ${{ matrix.configuration }} -j 1 -V \ No newline at end of file diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index fd179a31..63bfffde 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -13,10 +13,10 @@ jobs: fetch-depth: 0 - name: install clang-format - run: sudo apt install clang-format + run : sudo apt install clang-format - name: check-diff - run: | + run : | diff=`git-clang-format --diff HEAD^` if ! [[ "$diff" = "no modified files to format" || "$diff" = "clang-format did not modify any files" ]]; then echo "The diff you sent is not formatted correctly." diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 8113febb..bead43f0 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -20,19 +20,19 @@ jobs: database: test_ormppdb - name: Verify MySQL - run: mysql -uroot -e'show databases;' + run : mysql -uroot -e'show databases;' - name: Configure cmake - run: cmake -B${{ github.workspace }}/build -DCOVERAGE_TEST=ON -DENABLE_MYSQL=ON -DCMAKE_BUILD_TYPE=Debug + run : cmake -B${{ github.workspace }}/build -DCOVERAGE_TEST=ON -DENABLE_MYSQL=ON -DCMAKE_BUILD_TYPE=Debug - name: Build - run: cmake --build ${{ github.workspace }}/build --config Debug + run : cmake --build ${{ github.workspace }}/build --config Debug - name: Test working-directory: ${{ github.workspace }}/build - env: + env : CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest -C Debug -j `nproc` -V + run : ctest -C Debug -j `nproc` -V - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 \ No newline at end of file