diff --git a/.gitea/workflows/cmake.yml b/.gitea/workflows/cmake.yml index 75dbb4c..80172c4 100644 --- a/.gitea/workflows/cmake.yml +++ b/.gitea/workflows/cmake.yml @@ -16,21 +16,24 @@ jobs: shared: ["ON", "OFF"] pthread_support: ["ON", "OFF"] posix_support: ["ON", "OFF"] + exclude: + - posix_support: "OFF" + pthread_support: "ON" runs-on: ${{ matrix.os }} - name: ${{ matrix.os }} - shared=${{ matrix.shared }} + name: ${{ matrix.os }} - shared=${{ matrix.shared }}, pthread=${{ matrix.pthread_support }}, posix=${{ matrix.posix_support }} steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y cmake build-essential - - name: Configure - run: | - cmake -Bbuild -S . \ - -DDCFG_BUILD_SHARED=${{ matrix.shared }} \ - -DDCFG_PTHREAD_SUPPORT=${{ matrix.pthread_support }} \ - -DDCFG_POSIX_SUPPORT=${{ matrix.posix_support }} - - name: Build - run: | - cmake --build build + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake build-essential + - name: Configure + run: | + cmake -Bbuild -S . \ + -DDCFG_BUILD_SHARED=${{ matrix.shared }} \ + -DDCFG_PTHREAD_SUPPORT=${{ matrix.pthread_support }} \ + -DDCFG_POSIX_SUPPORT=${{ matrix.posix_support }} + - name: Build + run: | + cmake --build build