Author: ivan
Date: Sun Apr 23 09:44:05 2023
New Revision: 1909364

URL: http://svn.apache.org/viewvc?rev=1909364&view=rev
Log:
* .github/workflows/linux-cmake.yml: Add Linux (CMake) builder.

Added:
    serf/trunk/.github/workflows/linux-cmake.yml

Added: serf/trunk/.github/workflows/linux-cmake.yml
URL: 
http://svn.apache.org/viewvc/serf/trunk/.github/workflows/linux-cmake.yml?rev=1909364&view=auto
==============================================================================
--- serf/trunk/.github/workflows/linux-cmake.yml (added)
+++ serf/trunk/.github/workflows/linux-cmake.yml Sun Apr 23 09:44:05 2023
@@ -0,0 +1,37 @@
+name: Linux (CMake)
+
+on:
+  push:
+    branches: [ "*" ]
+  pull_request:
+    branches: [ "trunk" ]
+
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [ "ubuntu-20.04", "ubuntu-22.04" ]
+        build-type: [Debug, Release]
+      fail-fast: false
+
+    runs-on: ${{ matrix.os }}
+    steps:
+      - name: Install prerequisites
+        run: |
+          sudo apt-get update
+          sudo apt-get install libapr1 libapr1-dev libaprutil1 libaprutil1-dev 
zlib1g zlib1g-dev libssl-dev
+
+      - uses: actions/checkout@v3
+
+      - name: Configure CMake
+        run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ 
matrix.build-type }}
+
+      - name: Build
+        run: cmake --build ${{github.workspace}}/build --config ${{ 
matrix.build-type }}
+
+      - name: Test
+        working-directory: ${{github.workspace}}/build
+        run: ctest -C ${{ matrix.build-type }} --output-on-failure


Reply via email to