Kaynağa Gözat

rename and dependency extraction (#1634)

rebase and refactor of [this
pr](https://github.com/coturn/coturn/pull/1400) from last year that was
never merged

rename of cmake YAML file to match others and extraction of dependencies
to already existing composite action
redraincatching 8 ay önce
ebeveyn
işleme
9f3da44285

+ 2 - 1
.github/workflows/actions/ubuntu-build-deps/action.yml

@@ -33,8 +33,9 @@ runs:
             build-essential \
             clang \
             clang-tidy \
-            ninja-build \
+            cmake \
             iwyu \
+            ninja-build \
             pkgconf \
             wget
         if [ "$(lsb_release -s -r)x" == "16.04x" ]; then apt install -y clang-tools; fi

+ 13 - 17
.github/workflows/cmake.yaml → .github/workflows/cmake.yml

@@ -16,25 +16,21 @@ env:
 
 jobs:
   build:
-    runs-on: ubuntu-20.04
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ 'ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04' ]
+
+    runs-on: ubuntu-latest
+    container: ${{ matrix.os }}
+
     steps:
-      - name: Install dependencies
-        run: |
-          sudo apt-get update
-          sudo apt-get install -y \
-              libevent-dev \
-              libssl-dev \
-              libpq-dev libmariadb-dev libsqlite3-dev \
-              libhiredis-dev \
-              libmongoc-dev \
-              libmicrohttpd-dev \
-              wget
       - uses: actions/checkout@v4
-      - name: Prometheus support
-        run: |
-          wget https://github.com/digitalocean/prometheus-client-c/releases/download/v0.1.3/libprom-dev-0.1.3-Linux.deb && \
-              sudo apt install ./libprom-dev-0.1.3-Linux.deb && \
-              rm ./libprom-dev-0.1.3-Linux.deb
+
+      - name: Install dependencies
+        env:
+          DEBIAN_FRONTEND: noninteractive
+        uses: ./.github/workflows/actions/ubuntu-build-deps
 
       - name: Configure
         run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}