You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2021/11/11 02:18:12 UTC

[couchdb-erlfdb] 01/01: Build against multiple Erlang/OTP versions

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch refactor-build-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git

commit 932613af7a1d7e030f3afff2144c09e29212909a
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Wed Nov 10 21:17:59 2021 -0500

    Build against multiple Erlang/OTP versions
---
 .github/workflows/ci.yml | 40 +++++++++++++++++++++++++++++++++++++---
 1 file changed, 37 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4dee37a..5fc6936 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,6 +10,41 @@ permissions:
 
 jobs:
 
+  otp_version_matrix:
+    strategy:
+      matrix:
+        otp-version: ['20', '21', '22', '23', '24']
+        fdb-version: ['6.3.22']
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out repository code
+        uses: actions/checkout@v2
+        with:
+          persist-credentials: false
+          submodules: recursive
+      - name: Install FoundationDB
+        env:
+          FDB_VERSION: ${{ matrix.fdb-version }}
+        run: |
+          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
+          wget https://www.foundationdb.org/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-server_${FDB_VERSION}-1_amd64.deb
+          sudo dpkg -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb
+          sudo dpkg -i foundationdb-server_${FDB_VERSION}-1_amd64.deb
+      - name: Setup Erlang
+        uses: ./.github/actions/setup-beam
+        with:
+          otp-version: ${{ matrix.otp-version }}
+          rebar3-version: '3.17'
+      - name: Compile
+        run: rebar3 compile
+      - name: EUnit tests
+        run: rebar3 eunit
+      - name: Setup tmate session on job failure
+        uses: ./.github/actions/tmate
+        if: ${{ failure() }}
+        with:
+          limit-access-to-actor: true
+
   build_on_linux:
     strategy:
       matrix:
@@ -155,9 +190,8 @@ jobs:
           COVERALLS_FLAG_NAME: bindingtest-${{ matrix.test-name }}-${{ matrix.api-version }}
         run: rebar3 as test coveralls send
 
-
-  finish:
-    needs: [build_on_linux, build_on_windows, binding_tester]
+  finalize_coverage_report:
+    needs: [otp_version_matrix, build_on_linux, build_on_windows, binding_tester]
     runs-on: ubuntu-latest
     steps:
       - name: Finalize Coveralls report